-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add disableCORS option to server options #35
base: dita
Are you sure you want to change the base?
Conversation
Wholesale disabling of CORS may have its uses, but I think it would be a lot more useful if consumers of this package were able to set the "allow origins" (for example) as a wildcard asterisk * typically gets rejected by HTTP clients with "credentials" (for example). dita-streamer-js/src/http/server.ts Lines 297 to 311 in ff2a502
|
I agree with you, but I think both are a useful feature. |
With the latest changes, it works behind an API gateway with CORS enabled and |
This feature allows you to disable CORS via the server options
Closes #34