Getting Internet Explorer "Failure Resolution" Error for CORS PATCH Request

Really puzzled by this mistake. All versions of IE, even those that support CORS, throw "denied permissions" when I try to make a PATCH request for cross-domain access (using jQuery.ajax). All other methods (even PUT) work correctly, but PATCH causes an immediate error when send () is called.

Given that later versions of IE support CORS and supposedly support all types of methods, is there any reason that CORS + PATCH will result in an error?

(And yes, Access-Control-Allow-Methods is set to GET, POST, DELETE, PATCH, PUT, OPTIONS , so I don't think the problem is.)

+5
source share
1 answer

CORS for IE requires the P3P policy header to work properly. Try the following:

Trying a quick fix

Make sure this is found in the header sent from the server:

 P3P: CP="NON DSP LAW CUR ADM DEV TAI PSA PSD HIS OUR DEL IND UNI PUR COM NAV INT DEM CNT STA POL HEA PRE LOC IVD SAM IVA OTC" 

Not a very quick solution

Read this article: Create a P3P policy to make IE behave

0
source

Source: https://habr.com/ru/post/1201097/


All Articles