tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.4k stars 484 forks source link

Prevent script injection in an iframe #400

Closed SirMetathyst closed 2 years ago

SirMetathyst commented 2 years ago
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting

Issue description

How to prevent script injection in an iframe

image

Software details

SirMetathyst commented 2 years ago

Found solution: add head tag above body in srcdoc.