Hi, I am getting cors error when I am using oathke...
# talk-oathkeeper
g
Hi, I am getting cors error when I am using oathkeeper for my apis. I am getting error as "has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:3000, http://localhost:3000', but only one is allowed." in browser. It seems request is getting process but response is blocked by browser. Could you please help me with this. With and without nginx issue is same. I have enable authantication with kratos and oathkeer is having cors enabled.
m
Hello Sadhana, this is hard to debug without having access to your code. Can you share your configuration, logs etc.? Otherwise please also have a look at the Oathkeeper configuration examples: https://github.com/ory/examples
Can you share your header as well as it seems the error is due to multiple values in the header?