Skip to content

Enable cookies in UI reverse proxy - #1311

Merged
iberflow merged 1 commit into
masterfrom
hotfix/ui-cors
Sep 24, 2019
Merged

Enable cookies in UI reverse proxy#1311
iberflow merged 1 commit into
masterfrom
hotfix/ui-cors

Conversation

@iberflow

@iberflow iberflow commented Sep 23, 2019

Copy link
Copy Markdown
Contributor

This PR enables CORS cookies. Problem was that ModifyResponse was setting additional headers so the CORS origin header had multiple entries. Another problem was that Gin CORS middleware was using a wildcard for the Access-Control-Allow-Origin and that doesn't work for CORS calls with cookies, it has to be set explicit.

This wasn't an issue before since UI is running on the exact same host:port as the reverse proxy.

@iberflow
iberflow merged commit 36140f8 into master Sep 24, 2019
@iberflow
iberflow deleted the hotfix/ui-cors branch September 24, 2019 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants