Nginx配置https兼容http

server{}花括号里加上这个配置:

add_header Content-Security-Policy "upgrade-insecure-requests;connect-src *";

posted @ 2021-06-04 13:37  jukuk1  阅读(266)  评论(0编辑  收藏  举报