X-Frame-Options禁止重定向到PayPal [英] X-Frame-Options forbidding redirect to PayPal
问题描述
我有一个由于以下错误而不会重定向到贝宝的支付系统:拒绝显示文档,因为X-Frame-Options禁止显示."表单已发布,并创建了正确的重定向URL,但是Paypal查询未返回任何响应:
I've got a payment system that won't redirect to paypal because of the error: "Refused to display document because display forbidden by X-Frame-Options." The form is posted and the proper redirect url is made, but there is no response returned from the paypal queries:
这将正确地重定向到下一个查询: https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&令牌= xxx
This redirects properly to the next query: https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=xxx
这显示没有响应: https://www.sandbox.paypal.com/我们/cgi-bin/webscr?cmd = _flow& SESSION = xxx& dispatch = xxx
如果我将第一个查询剪切并粘贴到浏览器中,则从应用程序(在Chrome中)运行时,它会重定向到paypal,但是会出现X-Frame-Options错误. (或在Firefox中什么也没有)
If I cut and paste the first query into the browser, it redirects to paypal, when running from the application (in Chrome) however, I get the X-Frame-Options error. (or in Firefox, nothing)
推荐答案
这意味着Paypal不允许您在iframe中使用Paypal.您不应该在iframe中使用Payapl.
This means that Paypal doesn't allow you to use Paypal in an iframe. You should not use Payapl in an iframe.
这篇关于X-Frame-Options禁止重定向到PayPal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!