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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -