javascript - CORS request works in a plain HTML file but not under IIS -


i've been developing jquery plugin involves making cors ajax calls. development work started inside of plain html page. able open file (right click, open [browser]) in chrome, firefox, , ie7+ , bring data company's dev server (using https).

the issue came when started integrating plugin new web forms page. ran through iis time, , ajax call came "error: access denied" in ie <= 9, worked fine in ie10, 11, chrome, , firefox.

in fiddler, compared requests sent out html page opened file , html page run through iis. opening plain file, request contained origin http header set null. under iis, request did not have origin header, had referer header set localhost.

i've read ie 8 , 9 have partial support cors, while ie10 has full support.

what don't understand why cors ajax calls work in ie 7/8/9 when opened html page plain file , not work when run through iis. has else come across issue? referer header that's making throw access denied error?


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -