html - iframe 内的按钮不起作用

标签 html iframe paypal

iframe 页面内的按钮不起作用。 (打开 Paypal 购物车页面的 PayPal 按钮)

带 iframe 的页面:https://www.keymarket.de/microsoft-access-2010-p-33-checkout.html

原网页:https://payivy.com/v/Windows%207%20Professional%20SP1%20Key

原始页面上的按钮有效,但 iframe 页面上的按钮没有响应。

最佳答案

当我尝试它时,我在控制台收到以下错误消息:

Refused to display 'yoururl' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

您不能在 iframe 上设置 X-Frame-Options。它是由您从中请求资源的域设置的响应 header ,因此在您的情况下是 PayPal。

在这种情况下,他们将 header 设置为 SAMEORIGIN,这意味着他们已停止在自己域之外的 iframe 中加载资源。

要了解有关 X-Frame-Options 的更多信息,请查看此链接:

https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options

另见此处:

Generic solution of 'X-Frame-Options' to 'SAMEORIGIN' issue

关于html - iframe 内的按钮不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28960043/

相关文章:

php - xajax扩展列表查询

html - 返回键 : How to focus the right form

javascript - 带有提交按钮的 JS 下拉菜单

html - 使用XPath,如何在没有前面的文本的情况下获得完全匹配的标记?

jquery - Youtube Player Iframe,在 Firefox 上没有视频的声音

javascript - float 在 iframe html 上

php - Symfony2 : Integrating with a non-namespaced SDK (specifically PayPal)

PHP Express Checkout Response 在几秒钟内调用我的脚本两次

javascript - 获取跨域iframe的DOM内容

php - 如何从 PayPal Plus 的付款选择页面中删除信用卡付款选项