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 CORS handling for /api/create endpoint #206

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mastqe
Copy link

@mastqe mastqe commented Dec 31, 2024

Sets Access-Control-Allow-* headers on requests to the /api/create endpoint.
This allows the JSON API to be used for secret creation from a web app hosted at a different domain.

Copy link
Owner

@Luzifer Luzifer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These headers can be added in the proxy-server / ingress in front of OTS.

At the very least this must be configurable. Generally disabling CORS for the endpoint allows everyone to post to every instances using any web-interface. The operators need to be able to explicitly activate / configure this (default should be off).

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.

2 participants