Cross-Origin Resource Sharing (CORS) is essential for allowing front-end applications to communicate with the Application Programming Interfaces (APIs) in your Content Management System (CMS). For detailed information about CORS, visit the MDN Web Docs CORS documentation.
The CMS has CORS enabled by default, permitting access from any origin. However, it can be adjusted to authorize only specified IP addresses or domains that will use the CMS's APIs.
To set up CORS:
- Access your site.
- In the left sidebar, click API > CORS configuration.
- In the Allowed origins field, update the settings to include the IPs or domains of the front-end applications.
- Click Save configuration.