CORS problem when calling tyk-portal/api/

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

Hello @David_Slechticky and welcome to the community :partying_face:

What you are looking for has been explained in full detail on the topic below

Dear Olu,
thank you very much for your promt response, solution seems to work good right now.
Best regards,
David