Skip to content

Commit b770472

Browse files
committed
Block popup ads from videasy.net player iframe
Add sandbox attribute to restrict the embedded player from opening new tabs/windows or redirecting the parent page, while preserving video playback functionality. https://claude.ai/code/session_013pgMqLXATX4mt7nqFJbNSs
1 parent 67037dd commit b770472

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

components/Player.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default function Player({
2626
src={src}
2727
className="absolute inset-0 w-full h-full"
2828
allowFullScreen
29+
sandbox="allow-scripts allow-same-origin allow-forms"
2930
allow="autoplay; fullscreen; picture-in-picture"
3031
referrerPolicy="origin"
3132
title="Player"

0 commit comments

Comments
 (0)