Access to XMLHttpRequest at 'https://uatmyskiswap.sfo3.digitaloceanspaces.com/mtn1067cgyun59enm7tg5pepje…Signature=9a216bd…' from origin 'http://uat.myskiswap.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
dropzone_controller.js:29 Uncaught TypeError: Cannot read property 'signed_id' of undefined at dropzone_controller.js:29 at e.callback (activestorage.js:879) at e.value (activestorage.js:841) at XMLHttpRequest.<anonymous> (activestorage.js:815)
dropzone.on("addedfile", file => { setTimeout(() => { if (file.accepted) { const upload = new DirectUpload(file, this.url) upload.create((error, blob) => { this.hiddenInput = document.createElement("input") this.hiddenInput.type = "hidden" this.hiddenInput.name = this.inputTarget.name this.hiddenInput.value = blob.signed_id this.inputTarget.parentNode.insertBefore(this.hiddenInput, this.inputTarget.nextSibling) dropzone.emit("success", file) dropzone.emit("complete", file) }) } }, 500)
activestorage.js:823 PUT https://uatmyskiswap.sfo3.digitaloceanspaces.com/mtn1067cgyun59enm7tg5pepje…Signature=9a216bd… net::ERR_FAILED