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
Support dynamic CORS origin allow list #2050
Comments
Hi @willnewton! I've added the As a workaround, you can also set the |
In some cases it is useful to allow a dynamic list of CORS origin domains, for example a wild carded list of subdomains. A feature that is available in some other CORS middleware is to allow a function to be passed in to do this. For example:
https://expressjs.com/en/resources/middleware/cors.html#configuring-cors-w-dynamic-origin
One way to implement this might be to pass a function for allow_origin to the middleware which can be called in process_response.
The text was updated successfully, but these errors were encountered: