错误: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.
官方文档说明:
SECURE_CROSS_ORIGIN_OPENER_POLICY
New in Django 4.0.
Default: 'same-origin'
Unless set to None
, the SecurityMiddleware sets the Cross-Origin Opener Policy header on all responses that do not already have it to the value provided.
解决问题:
只需要在setting中设置为none即可解决:
SECURE_CROSS_ORIGIN_OPENER_POLICY = 'None'