Description
You get following errors in the browser console:Cause
The CORS middleware in the Gateway is blocking this request. This can happen when the CORS settings of the API are not enabled or misconfigured for the developer portal.Solution
Make sure that your CORS in theAdvanced Options of the API is enabled and the settings are correct. This means:
Allowed Originsshould allow the developer portal domainAllowed Methodsshould allow all methods needed for API documentation (at leastGETandPOST)Allowed Headersshould allow at leastOrigin,Content-Typeand for authenticated requests the authorization header (e.g.Authorization)
Note: When creating a new API with Dashboard v3.1 and higher the CORS settings will be prefilled with some default values (but disabled by default).You can learn more about CORS on this pages: