Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
localhost and localhost:19006 are different sites from the browser's point of view.
CORS headers must be returned, including for OPTIONS requests.
header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
header('Vary: Origin');
withCredentials=true
for AJAX requests.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question