javascript - Safari turns Simple Cors Request into Preflight after 302 redirect -


i found out following issue occurs on safari via javascript, jquery ajax:

  1. i make cors simple request using get
  2. server responses 302
  3. 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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -