Legacy: Tyk Classic PortalYou’re viewing documentation for the Tyk Classic Portal, which is no longer actively maintained.If you’re looking for the latest API documentation for the new Tyk Developer Portal, please refer to the
Postman collection or visit the
Tyk Developer Portal section.The Classic Portal is in maintenance mode and will be deprecated soon. For questions or support, contact us at
support@tyk.io.
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 Origins
should allow the developer portal domainAllowed Methods
should allow all methods needed for API documentation (at leastGET
andPOST
)Allowed Headers
should allow at leastOrigin
,Content-Type
and 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: