Skip to content

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.

Select CORS config form

Select the CORS configuration form

In the second step, adjust the CORS policies.

CORS diagram

Adjust CORS policies

Once you're done, select Publish/Save to apply the new CORS policies.

Select the Publish button


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