mirror of
https://github.com/openwrt/packages.git
synced 2026-06-01 07:21:56 +08:00
ccd69a148f
Major changes since 3.10.0: 4.0: - add CORS_ALLOW_PRIVATE_NETWORK setting for Local Network Access spec support - add async middleware support, reducing overhead on async views - remove deprecated CORS_REPLACE_HTTPS_REFERER and CorsPostCsrfMiddleware - remove three header names from default allowed list (accept-encoding, dnt, origin) 4.3: - fix access-control-allow-credentials header not being omitted on non-allowed responses 4.6: - drop support for Django 3.2 through 4.1 4.9: - add Django 6.0 support - tighten validation of sequence-type settings (e.g. CORS_ALLOW_METHODS) Add PYPI_SOURCE_NAME:=django_cors_headers as the 4.x sdist uses underscores in the filename. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
15 lines
287 B
Bash
15 lines
287 B
Bash
#!/bin/sh
|
|
|
|
[ "$1" = python3-django-cors-headers ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
import corsheaders
|
|
from corsheaders.middleware import CorsMiddleware
|
|
from corsheaders.conf import conf
|
|
|
|
assert CorsMiddleware is not None
|
|
assert conf is not None
|
|
|
|
print("python3-django-cors-headers OK")
|
|
EOF
|