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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -