Most of the time this works as designed, you do not need to think much about CORS configuration. In some cases you may find the configuration is restricting the way you want to use FusionAuth, especially if you are building out browser-based single page applications (SPAs). If this happens, FusionAuth allows you to modify or enable the CORS filter.
Available Since Version 1.8.0.
To modify the default CORS configuration navigate to Settings -> System -> CORS. Please utilize caution when modifying this configuration, with great power comes great responsibility.
When enabled, the CORS filter will process requests made to FusionAuth. The default setting disables the CORS filter, and all CORS requests will be denied.
Access-Control-Allow-Credentials response header values as described by MDN Access-Control-Allow-Credentials.
Access-Control-Allow-Headers response header values as described by MDN Access-Control-Allow-Headers.
Access-Control-Allow-Methods response header values as described by MDN Access-Control-Allow-Methods.
Access-Control-Allow-Origin response header values as described by MDN Access-Control-Allow-Origin. If the wildcard
* is specified, no additional domains may be specified.
Access-Control-Expose-Headers response header values as described by MDN Access-Control-Expose-Headers.
Access-Control-Max-Age response header values as described by MDN Access-Control-Max-Age.
Enable debug to create an event log to assist you in debugging
403 HTTP response codes. When enabled, a Debug event log will be created when the FusionAuth CORS filter returns a
403 detailing the reason for the response to assist you in configuration.
CORS Excluded URI Paths
We have excluded some paths from FusionAuth CORS filtering in order to force same-origin browser requests on these paths. The following are the URL patterns excluded from our CORS filter.
The following reference has been provided in case you want to return the CORS filter configuration to the original values provided by FusionAuth.
false, but you need this to be
true to process any CORS requests.