question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Security error in Safari

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LinusUcommented, Jul 16, 2020

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

0reactions
cburgmercommented, Jun 18, 2017

Closing this. Hopefully Safari will support this in the future.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found