elmuz
elmuz
IImmich
Created by elmuz on 1/5/2025 in #help-desk-support
Fixing CORS in Nginx for statistics in Homer dashboard
Hi. I am getting CORS issues with Homer dashboard + Immich. In my setup Immich is behind Swag (based on. Nginx). Usually I fix this by adding add_header Access-Control-Allow-Origin *; in the Nginx location of the proxied service. In this case the destination is https://immich.example.com/api/server/statistics. I added the usual line in the location /api/server/statistics { block (or also location ~ (/immich)?/api, like mentioned in https://github.com/linuxserver/reverse-proxy-confs/blob/8625ed9dbd0ae9aab4d64ac571d1c4403533ab74/immich.subdomain.conf.sample#L48), but it doesn't have effect. Do you have any idea why?
6 replies