javascript - dropzone return cross domain error -
i'm tring upload file using dropzone, when upload file through across domains shows me cross domain error.
html
<img style="cursor: pointer;" class="ui medium bordered image" name="fotomural" onchange="javascript{$('#fbftmural').val(this.src)}" id="fpftmural" src="../dummyimage.png">
javascript
$("#fpftmural").dropzone({ url:'localhost:8000/pessoas/uploadfoto', uploadmultiple: false, autoprocessqueue: true, withcredentials: true, //cross domain property init: function() { var dropzone = this; this.on("success", function(file,xmlresponse) { console.log(xmlresponse); }); } });
error
xmlhttprequest cannot load localhost:8000/pessoas/uploadfoto. cross origin requests supported protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.dropzone.submitrequest @ dropzone.js:1371dropzone.uploadfiles @ dropzone.js:1367dropzone.processfiles @ dropzone.js:1161dropzone.processfile @ dropzone.js:1147dropzone.processqueue @ dropzone.js:1140(anonymous function) @ dropzone.js:1004
Comments
Post a Comment