i have google apps script supposed receive , process base64-encoded data. sending cors requests works well, data strings long sent parameters, have send in cors post requests. unfortunately, post requests script gets http 405 , not include access-control-allow-origin:*-header.
this excerpt of current server side script:
function doget(e) { // irrelevant because requests works fine } function dopost(e) { // doesn't work: logger.log(e); return contentservice.createtextoutput("it works!"); } i using angularjs on client side send requests, here screenshot chrome of request: 
is there can fix this?
for reason got solved when added header content-type: undefined request.
Comments
Post a Comment