Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post request not working in IE9 #60

Open
jwerre opened this issue Dec 2, 2015 · 0 comments
Open

Post request not working in IE9 #60

jwerre opened this issue Dec 2, 2015 · 0 comments

Comments

@jwerre
Copy link

jwerre commented Dec 2, 2015

I've set up a cross domain POST request that is working in all browsers except IE9 (not worried later versions of IE). When the request is sent from IE9 Developer Tools show the correct request body was sent but when it shows up on the server side the request body is empty.

I should mention that I'm using a Backbone model to submit the request with Model.save() and I have the following ajax setup:

  $.ajaxSetup({
    cache: false,
    crossDomain: true,
    contentType: 'text/plain',
    dataType: 'json'
  });

On the server side I have the following headers:

"Access-Control-Allow-Origin", "*"
"Access-Control-Allow-Headers", "X-Requested-With, Content-Type"
"Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant