django4.0, The Cross-Origin-Opener-Policy header has been ignored...

django4.0以后引入一些第三方的JS,浏览器会报如下错误

   The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.

在这里插入图片描述
官方文档给出了说明,只需要将该配置的值设为None即可解决!

你可能感兴趣的:(Django,django,python)