Description
Description
I want to use my own hosted gitea instance as OIDC provider for a test SPA based on angular-oauth2-oidc.
Request for oidc discovery is blocked with error message:
Access to XMLHttpRequest at 'https://gitea-instance/.well-known/openid-configuration' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Enabling cors in gitea-instance via
[cors]
ENABLED = true
ALLOW_DOMAIN = *
does unblock this request but the follow up request for autodiscovery is blocked too:
Access to XMLHttpRequest at 'https://gitea-instance/login/oauth/keys' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Any help would be appreciated.
Gitea Version
Gitea version: 1.21.2 built with GNU Make 4.4.1, go1.21.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Docker image gitea/gitea:latest in self hosted bare metal kubernetes single node cluster.
Database
None