Reputation: 3616
I use the next link in order to send chunking files with plupload.
I change the url parameter in order to send the request to my localhost:
url: "./upload.cfm"
, was changes to url: "localhost/upload"
As I see, the request is sent, but with request methods: OPTIONS
.
Why it happens and how I can change it to POST
?
Upvotes: 0
Views: 2173
Reputation: 944009
Since you are now making a cross-origin HTTP request, you are triggering a preflight request in which the browser asks the destination server if your website is allowed to ask browsers to make POST requests to the destination server.
Either configure the destination server to respond to the OPTIONS request with a response granting permissions (after getting that response the browser will make the POST request), or continue to make requests with XHR only to the same origin.
Upvotes: 1