Cannot enable CORS in config #59

Open
opened 2026-06-18 17:09:00 +00:00 by Markintosh128k · 0 comments

Hi,

I'm trying to host a Hugo site for my organization. I'm trying to enable Decap CMS with login via Gitea, but I'm facing a CORS issue ("TypeError: Failed to fetch" after Gitea authorization).

I tried to enable CORS by adding environment variables (GITEA__cors__ENABLED=true / GITEA__cors__ALLOW_DOMAIN=https://example.org) both via abra app config and forcing them via docker service update, but it didn't work.

I also looked for the app.ini file inside the volumes to add the settings manually, but since it's the gitea/gitea:1.24.2-rootless image, /etc/gitea/app.ini inside the container appears empty/read-only and it's not mapped in the standard _data volume paths.

How can I properly inject the [cors] settings into this specific Co-op Cloud Gitea recipe?

Thanks!

Hi, I'm trying to host a Hugo site for my organization. I'm trying to enable Decap CMS with login via Gitea, but I'm facing a CORS issue ("TypeError: Failed to fetch" after Gitea authorization). I tried to enable CORS by adding environment variables (GITEA__cors__ENABLED=true / GITEA__cors__ALLOW_DOMAIN=https://example.org) both via abra app config and forcing them via docker service update, but it didn't work. I also looked for the app.ini file inside the volumes to add the settings manually, but since it's the gitea/gitea:1.24.2-rootless image, /etc/gitea/app.ini inside the container appears empty/read-only and it's not mapped in the standard _data volume paths. How can I properly inject the [cors] settings into this specific Co-op Cloud Gitea recipe? Thanks!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/gitea#59
No description provided.