adamchainz / django-cors-headers

Django app for handling the server headers required for Cross-Origin Resource Sharing (CORS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix CORS_ORIGIN_WHITELIST example in pypi.org documentation

guilouro opened this issue · comments

Link: https://pypi.org/project/django-cors-headers/

Problem:
In the CORS_ORIGIN_WHITELIST section, has an error in the example

Need to be

CORS_ORIGIN_WHITELIST = [
    "https://example.com",
    "https://sub.example.com",
    "http://localhost:8080",
    "http://127.0.0.1:9000"
] # <-- Fix this! 

instead of

CORS_ORIGIN_WHITELIST = [
    "https://example.com",
    "https://sub.example.com",
    "http://localhost:8080",
    "http://127.0.0.1:9000"
) # <-- wrong signal

Thanks for spotting. This was fixed in #409 and will appear on PyPI with the next release. I don't have time to push a release just for the one typo :)

Great! :)