微信小程序访问django服务器报错referer检查未通过?

小程序 文章 2022-04-25 08:00 0 全屏看文

微信小程序访问django服务器报错referer检查未通过?The WeChat applet accesses the django server and reports an error referer check failed?

微信小程序访问django服务器报错referer检查未通过?

服务器采用django+uwsgi+nginx搭建,开启了CSRF跨站请求伪造的安全验证,小程序端在访问服务器时,已经设置了X-CSRFToken,但一直显示referer检查错误,根据搜索小程序中referer是不需要手动设置的,那这个问题应该怎么解决呀,有了解的朋友可以解答吗,十分感谢大家的帮助。

The server is built with Django + uwsgi + nginx, which enables the security verification of CSRF cross site request forgery. When the applet accesses the server, x-csrftoken has been set, but the referer check error is always displayed. According to the fact that the referer in the search applet does not need to be set manually, how should this problem be solved? Do you have friends who know about it? Thank you very much for your help.

回答:

风华绝代:风华绝代
与你有约:shensu@mi|ianteCh、COm一
໑ຼₒ₂₂ღ᭄ꫛ海意知飞铃꧔ꦿ᭄:哦豁

-EOF-