Skip to content Skip to sidebar Skip to footer

Jquery .ajax() 405 (method Not Allowed) / Cross Domain

I have seen so many questions on SO about this, but I can't find what is missing in my code. I'm implementing CORS cause I don't want to use JSONP. I know this is a preflighted req

Solution 1:

I had the same issue and this fixed it for me.

Change

[WebInvoke(Method = "Post")]

to

[WebInvoke(Method = "*")]

because although you accept POST, modern browsers will always send OPTIONS.

Post a Comment for "Jquery .ajax() 405 (method Not Allowed) / Cross Domain"