Security error in Safari
See original GitHub issueI’m getting a security error in Safari on a Mac or on IOS when I try to get a URL for a rendered canvas.
The error is:
SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
The line of code that it fails on is:
var urlImage = theCanvas.toDataURL ();
Where theCanvas is the canvas that rasterizeHTML.drawHTML was drawing into.
There are no images in the HTML, nor any non-native fonts. I think I’ve eliminated anything that can legitimately be a security error. Works in Chrome.
Dave
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Change Security settings in Safari on Mac - Apple Support
In the Safari app on your Mac, use Security settings to turn security warnings on or off. Also enable or disable JavaScript. To...
Read more >How to Fix Website Not Secure Error in Safari - Support.com's
How to Fix Website Not Secure Error in Safari · 1 Make Sure Date and Time are Correct · 2 Clear Browser History...
Read more >How to fix “Safari can't establish a secure connection” error on ...
How to fix “Safari can't establish a secure connection” error on Mac · Go to System Preferences and select Date & Time. Open...
Read more >How to fix "Safari can't establish a secure connection" on Mac
Safari can't establish a secure connection: Fixes · 1. Double check your URL · 2. Set the correct date and time · 3....
Read more >Safari can't establish a secure connection: Check these tips
How to fix secure connection problems in Safari · 1. Double-check the URL · 2. Set the correct date and time · 3....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems like
<foreignObject>
in the SVG is supported in iOS 13, but not on iOS 10. I haven’t checked the versions in-between to figured out exactly which version added support yet…edit: it works in iOS 12 as well
Closing this. Hopefully Safari will support this in the future.