Preflighted Resquest and ExtJS
I'm sorry if this question has already been asked, but I haven't found any info either via search engines or the forum.
I have an app that has the frontend (ExtJS) on one domain and the webservices servicing the frontend on another domain.
Everytime I make a request to an URL, an OPTIONS request is sent to the server first. I understand this is something that could be wanted, but does anyone know (or can point me to the doc) on how to make ExtJS not do this OTIONS call ?
Thanks in advance for your help,
I don't believe ExtJS has any control over this, it's done behind the scenes by the browser.
The second article suggests that you may be able to prevent the OPTIONS request by setting a suitable Content-Type header on the request. There are several ways to do this in ExtJS, see the docs for Ext.Ajax:
Tags for this Thread