How to configure CORS through the UI
How to configure CORS (Cross-Origin Resource Sharing) through the UI.
Before you begin¶
Before getting started, make sure to read our CORS overview docs to learn about CORS and Traefik Hub's default policies.
Configure CORS¶
Configuring CORS policies is part of the API configuration, you can do it as part of publishing an API or you can adjust the settings of an already published API.
First, select Security to open the configuration interface for CORS.
In the second step, adjust the CORS policies.
Once you're done, select Publish/Save to apply the new CORS policies.
Info
Depending on whether you configure CORS as part of publishing a new API or adjusting the settings of an already published one, the form will display a Publish (new API) or Save (existing API) button.
What's next¶
- Learn how to configure custom headers via the UI
- Learn how to use the UI for versioning APIs