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 <redacted>
include $(TOPDIR)/rules.mk
PKG_NAME:=django-cors-headers
-PKG_VERSION:=3.10.0
+PKG_VERSION:=4.9.0
PKG_RELEASE:=2
PYPI_NAME:=django-cors-headers
-PKG_HASH:=cd6f4360f5246569c149dc1c40c907c191f1ec45551e10d2a2e2e68512652f78
+PYPI_SOURCE_NAME:=django_cors_headers
+PKG_HASH:=fe5d7cb59fdc2c8c646ce84b727ac2bca8912a247e6e68e1fb507372178e59e8
PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
PKG_LICENSE:=MIT
--- /dev/null
+#!/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