this post was submitted on 02 Jun 2024
5 points (77.8% liked)
Photon
273 readers
1 users here now
Photon for Lemmy
A client for the fediverse designed to be intuitive, fast, and beautiful.
Share your themes, ask questions, report bugs, or check on the latest updates here!
You can contact the dev at @Xylight@lemdro.id.
Rules
- Posts must be related to Photon in any way
- Don't be mean
- If your post is a bug report, please preface the title with
[solved]
if it's been fixed.
founded 11 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Do you have it running under HTTPS? Since all of the API calls are HTTPS, you'll need to run it either under localhost or through a reverse proxy with SSL enabled.
Also, did you set
PUBLIC_INSTANCE_URL
environment variable to the domain of your home instance?e.g.
PUBLIC_INSTANCE_URL=discuss.tchncs.de
If you open your browser console, it should show some errors to indicate the problem.
On my Homeserver runs an NGINX Proxy Manager. There is HTTPS activated. The proxy use HTTP to connect to the local Docker Container.
Internet --> NGINX Proxy Manager --> local Docker Container
The Instance discuss.tchncs.de is not mine, but I have set the enviroment "PUBLIC_INSTANCE_URL=discuss.tchncs.de".
The errors are paste here
Errors are definitely indicating CORS is the issue. Specifically, that the
Access-Control-Allow-Origin
header is missing:Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt). Statuscode: 503.
Are you perhaps (accidentally) stripping out that header in your NPM config? Or do you have a browser extension that might be doing so?