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 support of cross-origin resource sharing (CORS) requests for subdomains #7

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

hephtaicie
Copy link
Contributor

This merge request adds a new configuration variable allow_origin which is set to "False" by default (i.e. no change in the current behavior). When set to "True", three HTTP headers are added to the server's response when the latest announcement is requested through the REST API. Those headers add the support of CORS requests [1]. Therefore, all the subdomains of the deployed JupyterHub (ex: https://.jupyter.company.org) can request and display the latest announcement.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

@rcthomas rcthomas merged commit a8090a7 into rcthomas:master Jul 23, 2020
@rcthomas
Copy link
Owner

Thanks!

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