Javascript 可能的方法只是允许特定页面嵌入到其他网站,而不是整个域
我有一个域名,我想只允许一些网址能够嵌入使用Iframe,如果我改变评论贝娄行我将能够嵌入任何东西在我的网站上显示为Iframe,但我不希望它发生 换句话说,例如,我只想允许这些URL嵌入其他网站:Javascript 可能的方法只是允许特定页面嵌入到其他网站,而不是整个域,javascript,apache,iframe,embed,x-frame-options,Javascript,Apache,Iframe,Embed,X Frame Options,我有一个域名,我想只允许一些网址能够嵌入使用Iframe,如果我改变评论贝娄行我将能够嵌入任何东西在我的网站上显示为Iframe,但我不希望它发生 换句话说,例如,我只想允许这些URL嵌入其他网站: <iframe src="https://mywebsite.com/index.php#/embed/object?id=34"></iframe> <iframe src="https://mywebsite.com"></iframe> &l
<iframe src="https://mywebsite.com/index.php#/embed/object?id=34"></iframe>
<iframe src="https://mywebsite.com"></iframe>
<iframe src="https://mywebsite.com/index.php#/notembed/object?id=34"></iframe>
https://mywebsite.com/embed/object?id=34