X-Frame-Options 禁止重定向到 PayPal [英] X-Frame-Options forbidding redirect to PayPal

查看:34
本文介绍了X-Frame-Options 禁止重定向到 PayPal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个支付系统,它不会因为错误而重定向到 paypal:拒绝显示文档,因为 X-Frame-Options 禁止显示."表单已发布并制作了正确的重定向网址,但贝宝查询没有返回响应:

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/us/cgi-bin/webscr?cmd=_flow&SESSION=xxx&dispatch=xxx

如果我将第一个查询剪切并粘贴到浏览器中,它会重定向到 paypal,但是从应用程序(在 Chrome 中)运行时,我收到 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆