-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure CORS for non repository routes #6
Comments
To make things more complicated it has nothing to do with Gitea itself; it's a limitation of the library used by Gitea to handle requests(maybe a design decision). Some relevant disscusion. |
I don't have time to look closer at this right now, but it makes me think that in that case we will have to proxy these endpoints to the main domain via Nginx or modify the header of the requests in Nginx. |
It seems another option is to fork to cors module and make it do what we want. |
Or we can drop Gitea altogether 🤣 🤣 🤣 Anyways look at the new PR, especially the latest commits. |
What's the status of this? |
Fixed it by configuring Nginx #7 (comment) |
The options here for configuring CORS doesn't support the
Access-Control-Allow-Origin
option.With this configuration in the
app.ini
file:The headers of the response are:
And the request from the browser results in the same CORS error.
There's an
ACCESS_CONTROL_ALLOW_ORIGIN
option under the[repository]
configuration but no other occurrences in the whole Gitea codebase.The text was updated successfully, but these errors were encountered: