ansible-openwisp2 icon indicating copy to clipboard operation
ansible-openwisp2 copied to clipboard

The CORS_REPLACE_HTTPS_REFERER setting has been removed

Open cbeaujoin-stellar opened this issue 7 months ago • 0 comments

TASK [openwisp.openwisp2 : Migrate] ********************************************************************************************************************************************************************************************************* fatal: [openwisp.intra.stellar.tc]: FAILED! => {"changed": false, "cmd": ["./manage.py", "migrate", "--noinput"], "msg": "\n:stderr: SystemCheckError: System check identified some issues:\n\nERRORS:\n?: (corsheaders.E013) The CORS_REPLACE_HTTPS_REFERER setting has been removed - see django-cors-headers' CHANGELOG.\n", "path": "/mnt/openwisp/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "syspath": ["/tmp/ansible_django_manage_payload_u33yn5qn/ansible_django_manage_payload.zip", "/usr/lib/python311.zip", "/usr/lib/python3.11", "/usr/lib/python3.11/lib-dynload", "/usr/local/lib/python3.11/dist-packages", "/usr/lib/python3/dist-packages", "/usr/lib/python3.11/dist-packages"]}

https://github.com/openwisp/ansible-openwisp2/blob/dcdcd21aa59c38a401cd7bcdb1adfbf24de1ffbe/templates/openwisp2/settings.py#L565

It should be replace by: CSRF_TRUSTED_ORIGINS = {{ openwisp2_django_cors.get('allowed_origins_list', []) }}

Ref: https://github.com/openwisp/ansible-openwisp2/issues/443#issuecomment-2129177709

cbeaujoin-stellar avatar Jul 12 '24 08:07 cbeaujoin-stellar