Answer the question
In order to leave comments, you need to log in
Why aren't cors headers being substituted?
I send headers to the sides of the backend:
header("Access-Control-Allow-Origin: validate.ru");
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Max-Age: 86400');
dataType: 'jsonp',
Answer the question
In order to leave comments, you need to log in
Quote from api.jquery.com/jquery.ajax
Those. when requesting dataType:'jsonp'
CORS is not used. Hence the problem is not in jsonp, but in incorrect CORS setup. Unfortunately, the example that you gave does not give a complete picture of what is configured wrong.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question