Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by qaco

9 years ago

how do you sandbox the iframe/code?

1 comment

qaco

Reply

lionleaf  9 years ago

Using the <iframe> "sandbox" property. At least stops things like alert('hey') and a full-page redirect

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities