Skip to content
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

CORS error on manifest.json behind oauth2-proxy #1121

Open
diyfr opened this issue Jun 17, 2022 · 1 comment
Open

CORS error on manifest.json behind oauth2-proxy #1121

diyfr opened this issue Jun 17, 2022 · 1 comment
Labels
enhancement New feature or request ui Need an ui update

Comments

@diyfr
Copy link

diyfr commented Jun 17, 2022

When I use AKHQ behind oauth2-proxy which handles authentication, it sets a cookie.
With this cookie, requests are forwarded to the AKHQ server.
Everything works fine, except for the manifest.json, where the browser doesn't send the cookie and you end up with an error (CORS).

The solution is to add the crossorigin="use-credentials" attribute to the tag:

<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">

Documentation :
crossorigin
link attributes

@tchiotludo
Copy link
Owner

Good catch, PR are welcome 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ui Need an ui update
Projects
Status: Backlog
Development

No branches or pull requests

2 participants