Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[BUG] Unable to refer images from Imgur #88

Open
gxgani opened this issue Oct 24, 2022 · 5 comments
Open

[BUG] Unable to refer images from Imgur #88

gxgani opened this issue Oct 24, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@gxgani
Copy link

gxgani commented Oct 24, 2022

Container                             Repository                        Tag                 Image Id            Size
api-gateway-standalone                standardnotes/api-gateway         latest              a2ce9338c689        149MB
auth-standalone                       standardnotes/auth                latest              53c0b16f1836        162MB
auth-worker-standalone                standardnotes/auth                latest              53c0b16f1836        162MB
cache-standalone                      redis                             6.0-alpine          83c577984741        24.7MB
db-standalone                         mysql                             5.6                 dd3b2a5dcb48        303MB
files-standalone                      standardnotes/files               latest              76461bdfa551        150MB
syncing-server-js-standalone          standardnotes/syncing-server-js   latest              814f2e24f737        161MB
syncing-server-js-worker-standalone   standardnotes/syncing-server-js   latest              814f2e24f737        161MB
workspace-standalone                  standardnotes/workspace           latest              471b8422fc26        159MB
workspace-worker-standalone           standardnotes/workspace           latest              471b8422fc26        159MB

Describe the bug
Unable to refer images from imgur, url returns 403 because of the referrer included in the headers

Screenshots
image

image

@gxgani gxgani added the bug Something isn't working label Oct 24, 2022
@0x111
Copy link

0x111 commented Nov 20, 2022

I don't think this is a bug of standardnotes. This request is initiated by your browser to the imgur servers directly and not through the standardnotes server.

There is nothing we can do if imgur is filtering requests based on the referer. You will probably need to setup some kind of server side proxy that would do the request instead of you (this is not part of standardnotes obviously). You will need to request this image indirectly.

@gxgani
Copy link
Author

gxgani commented Nov 23, 2022

I don't think this is a bug of standardnotes. This request is initiated by your browser to the imgur servers directly and not through the standardnotes server.

There is nothing we can do if imgur is filtering requests based on the referer. You will probably need to setup some kind of server side proxy that would do the request instead of you (this is not part of standardnotes obviously). You will need to request this image indirectly.

FYI the screenshots were taken from Standardnotes macOS client.

@0x111
Copy link

0x111 commented Nov 23, 2022

That is probably a pwa or chrome bundled based on the screenshots, so you would face the same issue as I described sadly😕

@gxgani
Copy link
Author

gxgani commented Nov 23, 2022

Does that mean I should be redirect this issue to webApp repo?

@0x111
Copy link

0x111 commented Nov 23, 2022

I don't think so, as I've already mentioned that, we as in you or me or standardnotes can't change Imgur's referrer filtering setup.

Maybe you could fake the domain from where the Webapp runs on so it is not 127.0.0.1 in the referer or just selfhost the Webapp on a regular domain then it would most likely load the picture.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants