Hello, we are trying Tyk api gateway - we are running trial Pro version on our hardware in Docker, but our goal is to use opensource Tyk and to use our own frontend to call tyk-gateway on /api endpoints and handle it.
Our problem is that web browser request from our application to the ’
localhost:8080/tyk/apis’; result in CORS error:
Access to fetch at ‘http://localhost:8080/tyk/apis’; from origin ‘http://localhost:3002/)’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
So I wonder if there is a way how to enable CORS on tyk-gateway, thank you