The problem is: I need to retrieve cookies from the server response using AJAX, using a specific registration API.
So I'm trying to fix this problem and I figured out much already:
I added Access-Control-Allow-Credentials to the PHP file
and I also added xmlHttp.withCredentials = true
into the JS file.
Now, when I send a request to the server, i get "500 Internal Server Error".
I'm certainly doing something wrong. Please help if you know