addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

App Scripts Upload File to Google Drive from web

From: Steven Max P.
Sent on: Friday, October 26, 2018 12:09 PM
Hi all,

HAs anyone written an app script to upload a file to Googe Drive?

If you have, would you please let me know and spend a few minutes identifying the problem we encountered.

We are building an application process for a non-profit educational event and running into this error:

Access to XMLHttpRequest at 'https://script.google.com/macros/s/AKfycbytXrHVWPxhx4VJx2XMX_Q17WuQghvV-z1eX3pg_0kvnAbKxDs3/exec' from origin 'https://realityvirtuallyhack.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
register.js:224 xhr.responseText
VM118:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at XMLHttpRequest.xhr.onreadystatechange (register.js:226)
xhr.onreadystatechange @ register.js:226
XMLHttpRequest.send (async)
UploadFile.reader.onload @ register.js:219
load (async)
UploadFile @ register.js:193
onclick @ (index):1
register.js:219 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://script.google.com/macros/s/AKfycbytXrHVWPxhx4VJx2XMX_Q17WuQghvV-z1eX3pg_0kvnAbKxDs3/exec with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.   

Thank you 

Best

Steven

pgp.mit.edu 0x09c7af99a6e6a902 



People in this
group are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy