Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The CORS_REPLACE_HTTPS_REFERER setting has been removed #480

Open
cbeaujoin-stellar opened this issue Jul 12, 2024 · 0 comments
Open

The CORS_REPLACE_HTTPS_REFERER setting has been removed #480

cbeaujoin-stellar opened this issue Jul 12, 2024 · 0 comments

Comments

@cbeaujoin-stellar
Copy link

cbeaujoin-stellar commented Jul 12, 2024

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"]}

CORS_REPLACE_HTTPS_REFERER = {{ openwisp2_django_cors.get('replace_https_referer', False) }}

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

Ref: #443 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant