Does anyone know if I can strip headers from a ser...
# talk-oathkeeper
r
Does anyone know if I can strip headers from a service I am proxying with cors? I am using a piece of proprietary software and they have bugs in their own cors implementation, so I am trying to use oathkeeper's instead. But now I have an error due to a double value: 👇
Copy code
The 'Access-Control-Allow-Origin' header contains multiple values '<https://ui.domain>, <https://domain>', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
s
Hey, I’m facing it too. Were you able to resolve this?
w
@blue-holiday-23038 and I as well. Did you find anything @silly-vegetable-17473?
r
I had the header twice
The server I proxy had its own cors middleware, disabled it and it worked
w
Sweet @red-machine-69654. What option did you use for that
r
I deleted some django crap
Hehe
It wasn’t a problem with oathkeeper
w
Great. Thank you, I think our issue must be related. I’ll reply here once we resolve it
r
You use django?
The middlewares are in settings/ somewhere
w
We’re having this issue setting up a custom UI for cloud Kratos. So, in debug mode, we see that the ory proxy itself is adding a CORS header for localhost, and there must be a * header being set somewhere else in the chain, we’re just not sure where
r
Yep
s
@white-dawn-42840, I was able to solve this issue, my server was spitting extra headers and oathkeeper was appending the similar headers instead of overwriting them.
w
For any future readers, we have been unable to resolve this coming from Ory Cloud Kratos to a Vue front end with the ory proxy.