Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接口: Referrer Policy: strict-origin-when-cross-origin #43

Closed
Xiaocge opened this issue Nov 11, 2020 · 6 comments
Closed

接口: Referrer Policy: strict-origin-when-cross-origin #43

Xiaocge opened this issue Nov 11, 2020 · 6 comments

Comments

@Xiaocge
Copy link

Xiaocge commented Nov 11, 2020

image

我发布了h5的版本, 我发现了 Referrer Policy: strict-origin-when-cross-origin 这个错误.
我简单的认为这是一个跨域问题..

我nginx 设置了 允许跨域. 这时候 所有的接口 都可以访问,. 但是 只有 http://xx.com/api/v1/app/advertising?type=1
是错误的. 别的 都是能正常访问的... 求解决方法

@Xiaocge
Copy link
Author

Xiaocge commented Nov 11, 2020

image
我使用postman 模拟请求... 是正常的

@dspurl
Copy link
Owner

dspurl commented Nov 11, 2020

@im-zhangxi 只有这一个api显示不出来?点击该报红链接,看下返回值是什么,根据你的错误提示,可能是由于http和https的问题,你可以试着切换成https
image

@Xiaocge
Copy link
Author

Xiaocge commented Nov 11, 2020

@dspurl #43 (comment)
点击链接 显示这个错误
image

我目前没有配置https. 但是理论上来说 不应该出现这个问题的...

@Xiaocge
Copy link
Author

Xiaocge commented Nov 11, 2020

@im-zhangxi 你可以访问下 http://mall.aiwala.com 看下. 就知道了

@dspurl
Copy link
Owner

dspurl commented Nov 11, 2020

@im-zhangxi 我看了下,一切正常
image

@Xiaocge
Copy link
Author

Xiaocge commented Nov 11, 2020

@dspurl 那应该是我个人的问题了.. 我发现 我的电脑,打开那个接口 就有问题. 我用手机 或者换成别的电脑 都是没有问题的.

@Xiaocge Xiaocge closed this as completed Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants