Skip to content

Commit 970be26

Browse files
committed
Prep for django-csp==4.0b5
1 parent 834e628 commit 970be26

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CHANGES.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
CHANGES
22
=======
33

4+
4.0b5
5+
=====
6+
BACKWARDS INCOMPATIBLE change:
7+
8+
- `request.csp_nonce` is now Falsy (`bool(request.csp_nonce)`) until it is read as a
9+
string (for example, used in a template, or `str(request.csp_nonce)`). Previously,
10+
it always tested as `True`, and testing generated the nonce.
11+
([#270](https://github.com/mozilla/django-csp/pull/270))
12+
13+
Other changes:
14+
15+
- Upgrade ReadTheDocs environment ([#262](https://github.com/mozilla/django-csp/pull/262))
16+
- Allow reading the nonce after response if it was included in the header. Add
17+
``CSPMiddlewareAlwaysGenerateNonce`` to always generate a nonce.
18+
([#269](https://github.com/mozilla/django-csp/pull/262))
19+
420
4.0b4
521
=====
622
- Fix missing packaging dependency ([#266](https://github.com/mozilla/django-csp/pull/266))
@@ -30,12 +46,14 @@ CHANGES
3046
4.0b1
3147
=====
3248
BACKWARDS INCOMPATIBLE changes:
49+
3350
- Move to dict-based configuration which allows for setting policies for both enforced and
3451
report-only. See the migration guide in the docs for migrating your settings.
3552
- Switch from specifying which directives should contain the nonce as a separate list, and instead
3653
use a sentinel `NONCE` in the directive itself.
3754

3855
Other changes:
56+
3957
- Add pyproject-fmt to pre-commit, and update pre-commit versions
4058
- Fixes #36: Add support for enforced and report-only policies simultaneously
4159
- Drop support for Django <=3.2, end of extended support

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = [ "setuptools>=61.2" ]
44

55
[project]
66
name = "django-csp"
7-
version = "4.0b4"
7+
version = "4.0b5"
88
description = "Django Content Security Policy support."
99
readme = "README.rst"
1010
license = { text = "BSD" }

0 commit comments

Comments
 (0)