php - set headers in cloudinary to avoid tainted canvas -


i'm making simple drawing app in javascript client side , php saving , loading. app hosted on heroku , saved pictures hosted on cloudinary. when app loads saved picture cloudinary , draws on canvas, canvas becomes tainted because of cross-domain. i'm using cloudinary php-api save image

\cloudinary\uploader::upload($canvastodataurl, array("public_id" => $savename)); 

i tried adding row in options array few different syntaxes

, "headers" => "access-control-allow-origin:*" 

i believe header not supported api, supported headers 'link' , 'x-robots-tag'.

is there way force saved pictures have header "access-control-allow-origin:*"?

you can set allowed origins through security console: https://cloudinary.com/console/settings/security

like below:

admin console


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -