javascript - Safari turns Simple Cors Request into Preflight after 302 redirect -
i found out following issue occurs on safari via javascript, jquery ajax:
- i make cors simple request using get
- server responses 302
- safari follows redirect uses options instead of method, preflight request
i expect step 3 invoke simple request using get, how done in chrome , firefox.
the problem server responses request after step 3 can not handle requests method options , therefor fails status "method not allowed". since have no influence on server side, need force either not follow redirect automatically , manually instead or somehow tell safari not switch options.
is there way 1 of options?
Comments
Post a Comment