Attention:You’ve reached a page related to the Tyk Classic Portal. If you were searching for API documentation of the new Tyk
Developer Portal please use the latest
Postman collection page.
Future deprecation of Tyk Classic PortalThis product is no longer actively developed as it has been superseded by the new Tyk Developer Portal.
Please note that the Tyk Classic Portal now has limited support and maintenance. Please contact us at support@tyk.ioif you have any questions.
Future deprecation of Tyk Classic PortalThis product is no longer actively developed as it has been superseded by the new Tyk Developer Portal.
Please note that the Tyk Classic Portal now has limited support and maintenance. Please contact us at support@tyk.ioif you have any questions.
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: