1 year ago
#70307
Raz Buchnik
How to perform httpOnly cookie authentication via proxies?
I have client on localhost on port 8080
lets call it A
. I have a backend API on localhost on port 3002
lets call it C
. A
doesn't connect to C
directly, but via a secure tunnel with HTTPS, lets call it B
. So the process is like this:
A: http://localhost:8080 =>
B: https://localtunnel.me/some-id =>
C: http://localhost:3002
The problem is that if A
configures withCredentials: true
, the httpOnly
cookies won't be pass through the proxy - it would only work if A
was talking directly with C
.
How to make it work, or that I am doing something wrong.
javascript
authentication
cookies
http-headers
httponly
0 Answers
Your Answer