We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Our current CORS middleware implementation supports a single domain only. The next step is to add support for multiple domains.
For the implementation we need to add the domain of the request to the middleware, and update the CORS implementation to accept a list of origins:
startServer(moduleImporter).then(server => { server.addMiddleware(new CorsMiddleware('domain1, domain2, ...')); });
The CORS implementation can then simply check if the request domain is in the list of origins and set the headers accordingly.
The text was updated successfully, but these errors were encountered:
basmasking
No branches or pull requests
Our current CORS middleware implementation supports a single domain only. The next step is to add support for multiple domains.
For the implementation we need to add the domain of the request to the middleware, and update the CORS implementation to accept a list of origins:
The CORS implementation can then simply check if the request domain is in the list of origins and set the headers accordingly.
The text was updated successfully, but these errors were encountered: