question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting a 403 for image URLs.

See original GitHub issue

I’m submitting a…

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[x] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior

When previewing some html which contains img elements with a src pointing to imgur for example I get a 403 status code (Forbidden). I would like to be able to configure the server permissions.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

6reactions
synalicecommented, Aug 16, 2021

Solution

This issue doesn’t seem to appear when opening the page as localhost instead of 127.0.0.1.

For example, if I start a live server and go to 127.0.0.1:5500, images that are hosted at imgur, don’t load. But if instead I go to localhost:5500 everything works fine.

This fixed my issue, but I don’t guarantee it to work for everyone.

1reaction
choidavid4commented, Sep 12, 2021

Solution

This issue doesn’t seem to appear when opening the page as localhost instead of 127.0.0.1.

For example, if I start a live server and go to 127.0.0.1:5500, images that are hosted at imgur, don’t load. But if instead I go to localhost:5500 everything works fine.

This fixed my issue, but I don’t guarantee it to work for everyone.

Worked like a charm! Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

forbidden 403 on image URLS - Stack Overflow
The URL is legit (If I check it manually it works) but I get 403 forbidden in my console when I debug in...
Read more >
Broken images: 403 Forbidden - WordPress.org
Enabling CDN breaks my images, and when trying access the image url in the browser, I get the following error: 403 Forbidden
Read more >
Links and web images with URLs failed with 403 error ... - Jira
Click Insert files and images from your toolbox; Insert an URL on the Image URL field; Publish the page; After some time the...
Read more >
The picture is not displaying in my page (403 error) - Laracasts
Hello everyone, I put my website online, and the images are not showing. ... img src in my code (using the developer tool)...
Read more >
error 403 when retrieving images - Forum - Discogs
I have an authorization token set up but when I try to fetch an image today I get 403 forbidden. So for example...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found