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

Add cryostat origin to APIServer CORS allowed origins #320

Closed
jan-law opened this issue Dec 22, 2021 · 0 comments · Fixed by #322
Closed

Add cryostat origin to APIServer CORS allowed origins #320

jan-law opened this issue Dec 22, 2021 · 0 comments · Fixed by #322
Assignees
Labels
feat New feature or request
Milestone

Comments

@jan-law
Copy link
Contributor

jan-law commented Dec 22, 2021

In order for the frontend to access the OAuth server logout endpoint, the APIServer needs the cryostat web host added to the spec additionalCORSAllowedOrigins. The docs mention this "may be needed to access the API and the integrated OAuth server from JavaScript applications". If I don't include this spec, the /logout request fails with a CORS error.
Here's a hardcoded example:

apiVersion: config.openshift.io/v1
kind: APIServer
metadata:
  ...
spec:
  additionalCORSAllowedOrigins:
  - cryostat-sample-default\.apps\.jalaw0\.lab\.upshift\.rdu2\.redhat\.com

Originally posted by @jan-law in https://github.com/cryostatio/cryostat/pull/786#discussion_r773471630

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants