Replies: 3 comments
-
here is my local.ini
|
Beta Was this translation helpful? Give feedback.
0 replies
-
added a MITM proxy between client and couchDB and here is what actually happening |
Beta Was this translation helpful? Give feedback.
0 replies
-
switched to JWT tokens, problem is gone |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I send a curl request to couchDB with the authorization everything works OK
here is the log
but when I'm doing request from browser with fetch
it fails with error:
Access to fetch at 'http://localhost:5984/_session' from origin 'http://localhost:8084' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
tried both with credentials: 'include' and without. no luck
preflight requests fails with 401 Unauthorized
But AFAIK it's impossible to force the browser to send X-Auth headers in the preflight request
Is it possible to disable preflight's request authorization check in couchDB?
Beta Was this translation helpful? Give feedback.
All reactions