When I send .create() from collection, it's always send OPTIONS (only in Google Chrome) request method.
Someone know how can i solve this?
I'm trying enable headers in my back-end service, but doesn't work.
I don't think Backbone itself is doing this—it never sends OPTIONS to my knowledge. This doesn't happen for me in Chrome.
A quick search turned up this, might be your problem:
Hope that helps,
I saw this thread, but doesn't work. I allow all response header in my back-end.
and my Backbone.view is so simple (test) :
   response.header("Access-
and my Backbone.view is so simple (test) :
'use strict';
define(['jquery', 'underscore', 'backbone', 'text!template/app.html', 'collection/justification-
When I test in IE(right in IE) and Opera it's works fine but chrome no
The only time I’ve seen this is when performing AJAX requests cross-domain. This isn’t a backbone issue, it’s a JQuery issue. This discussion on Stack Overflow may help: http://stackoverflow.
I also saw this discussion. But nothing work for me, I'm afraid about that haha 
Are you doing cross domain requests? (I.e., are the requests targeted to a domain different than the one in which the client app is running?)
An OPTIONS HTTP request is to be expected as part of 'preflighted' cross domain requests. It's normal. Take a look athttps://developer.mozilla.org/
I Hope this helps,
Yeah, I'm doing cross domain requests. 
Sure. I'll see that and test!
Solve my issue. Always when you will make a cross domain request make sure that you have OPTIONS request and allow headers.
 
댓글 없음:
댓글 쓰기