Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SECURITY_ERR: DOM Exception 18 ONLY IN Safari

i got two servers (prod.example.com and img.example.com)

so on "prod" i process images from "img" using canvas

in FF and Chrome all is Ok

but in Safari i got this SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent.

all images from "img" has Access-Control-Allow-Origin:* in headers

so where is padla?

like image 369
fullpipe Avatar asked Dec 31 '25 00:12

fullpipe


1 Answers

getImageData which you probably call will raise this if you try to access the one host from the other. You cannot go around this, the only way around it would be to proxy from img.example.com to prod.example.com

like image 118
ggozad Avatar answered Jan 02 '26 13:01

ggozad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!