Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 perl 中阻止 iframe,我正在搜索 PHP 脚本:
php 脚本: header("X-FRAME-OPTIONS: DENY");
它工作正常
但我在 Perl 中需要它
请任何人帮助我
谢谢
它应该可以工作,但请确保在发送内容类型之前打印它,如下所示:
print "X-FRAME-OPTIONS: DENY\n"; print "Content-type: text/html\n\n";