potential issue with cors handling #58
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm attempting to use Stelvia CMS that authorizes with a Forgejo account using their oauth system. The CMS does authentication client side as it's made for static sites. Using a personal access token resolves as "failed to fetch" and seems to be related to how Traefik responds to the request:
potential issues with cors handlingto potential issue with cors handling@Brooke I ran into this with toolshed/recipes.coopcloud.tech – what worked for me was setting the (apparently undocumented 😳)
CORS_ALLOW_DOMAINsetting in the Gitea recipe.Basically yes Traefik seems to need this label to respond correctly to CORS requests:
Hm I tried setting that and I'm getting the same error, will test more in the morning tomorrow.
So far I've tested setting traefik labels and forgejo's cors environment variables to no avail. I found a related issue on the forgejo codeberg and that ended with just forcing nginx to send the right headers so it leads me to believe it's still something that can be solved with the right combination of traefik labels. Honestly I'm still too unfamiliar with traefik in general to know where I'm doing something wrong.
@Brooke I wonder if it was somehow that both the traefik label, and the Gitea setting, was required when I set it up before?
It appears to be still working here anyway:
What Forgejo variable did you set, and did you add it to
compose.forgejo.yml?Ah ok I think I don't totally understand how sveltiacms is handling this then. Because I do get the same result when I curl git.coopcloud.tech and fung.uy (my git instance). I eventually migrated the repo to codeberg, sveltia is no longer throwing an error. Sorry, I feel totally lost trying to learn how all this is supposed to work.
I ended up not actually having to change anything with traefik and just set the following variables in the forgejo config. I'm so lost here but I feel like I can potentially conclude this as either being a forgejo issue or sveltia issue but not related to traefik. So, maybe the issue should be moved.
Amazing! Yes, this is what I was expecting. Maybe you could add these in
compose.forgejo.ymlif you have a spare moment?moved #46