You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(config): add homepage URL and CORS allowed origins support
- Introduced `HOMEPAGE_URL` and `CORS_ALLOWED_ORIGINS` environment variables to enhance CORS configuration.
- Updated `docker-compose.prod.yml` to include new environment variables.
- Modified CORS middleware in `main.go` to utilize the new homepage URL and allowed origins.
- Adjusted configuration loading in `config.go` to parse the new environment variables.
- Enhanced unit tests to validate the new configuration options.
Copy file name to clipboardExpand all lines: SECURITY.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ The registry supports three authentication methods:
47
47
48
48
### CORS
49
49
50
-
CORS is restricted to an explicit origin allowlist derived from `BASE_URL`and `FRONTEND_URL` configuration. Credentials are only sent for matching origins.
50
+
CORS is restricted to an explicit origin allowlist derived from `BASE_URL`, `FRONTEND_URL`, `HOMEPAGE_URL`, and optional `CORS_ALLOWED_ORIGINS` configuration. Credentials are only sent for matching origins.
0 commit comments