我正在使用uWSGI和Nginx运行Flask应用程序。我想使其符合PCI DSS。运行扫描会产生错误Cookie Does Not Contain The "secure" Attribute。如何在Flask中为cookie设置安全属性?
Cookie Does Not Contain The "secure" Attribute
我在Nginx文件中添加了以下行,但是没有用。
proxy_cookie_path / "/; secure;";
python flask
flask ×1
python ×1