Self-hosted setup limiting CORS origin breaks Ente web #8646
Replies: 2 comments 3 replies
-
|
Hi, have you had any luck resolving this? I'm facing the same issue, but only from ente web. Apps seem to work fine. Is self-hosted ente web working for anyone without I tried reading the discord thread, but the link leads me to an empty page. I then tried to join the ente community discord (maybe I have to do that first?) but there was an unskippable question about receiving notifications without the possibility of selecting "none", so I don't really want to do that... :/
|
Beta Was this translation helpful? Give feedback.
-
|
I also ran into this scenario. From what I could tell, this is due to the S3 request coming from a redirect provided by the Ente API. Since this is a cross-origin redirect, this causes the browser to set a null/opaque origin, which then fails non-wildcard CORS checks. My solution to this was a tad hacky: I configured my S3 system (garage) to be on the same origin as the Ente api (managed via caddy at reverse-proxy level). I could not find a way to put garage on a specific sub-path, since this messed with signatures used, but since all requests appear to use the bucket name in the path, I created a relatively unique bucket name ( |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Issue
I have a single server setup with an nginx reverse proxy. I am using a Garage S3 server on the same server. I can successfully use Ente web if my S3
Allow-Originheader is set to'*'. However, if I set theAllow-Originto anything else, then XHR GET requests break when using using Ente web from any browser. TheAllow-Originheader gets set tonullwhen GET requests are sent to S3. Therefore, images don't load but uploads work.There is some discussion on Discord here https://discord.com/channels/948937918347608085/1455243698794139901
Troubleshooting
I setup a custom log to see that the origin is being mapped correctly, when the browsers request origin is not null.

Configuration
io.example.net (NGINX - Garage - S3 )
Beta Was this translation helpful? Give feedback.
All reactions