Chrome vs Firefox - Why do CORS headers behave differently, and how should I use them?
问题 I am doing Ajax calls with CORS headers. The short version is that in Firefox, it all works nicely, in Chrome I get an error: "Refused to set unsafe header Access-Control-Request-Method" , and the same thing for Access-Control-Request-Headers. So, I am just confused. Like, very confused. What is it that I have to do in order to make CORS work properly in both Chrome and Firefox? The weird part I will say, though, is that it seems that despite the error, Chrome does execute the Ajax call. I am