Http client has headers for Content-Type: application/json and withCredentials: true
But it only sends OPTIONS request and then throws this error
{ _body: error, status: 0, ok: false, statusText: "", headers: Object, type: 3, url: null }
I tried different configurations for CORS and found following configuration which works well:
Following code is my configuration for enabling CORS needed for cookie-based authentication:
Http client has headers for Content-Type: application/json and withCredentials: true But it only sends OPTIONS request and then throws this error
{ _body: error, status: 0, ok: false, statusText: "", headers: Object, type: 3, url: null }
I tried different configurations for CORS and found following configuration which works well:
But I need to allow all origins. What is the problem with enabling both AllowAllOrigins and AllowCredentials together?
Thanks