reportportal / service-api

Report portal. Main API Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CORS does not seem to be working

mikesalvia opened this issue · comments

I can use Allow CORS: Access-Control-Allow-Origin extension however, this is not ideal long term. It appears this is happening only when accessing via JavaScript or other HTTP clients I am seeing it working in Postman but not axios.

I have found a way to enable CORS globally and have it trigger based on ENV variables. I will make PR for both this and service-authorization.

I handled this via traefik.