---
title: "Django: introducing django-integrity-policy"
url: https://daily.dev/posts/django-introducing-django-integrity-policy-pznzfgj4j
source_url: https://adamj.eu/tech/2026/05/31/introducing-django-integrity-policy
type: article
source: "Adam Johnson"
published: 2026-05-31T23:00:57.449Z
updated: 2026-06-07T20:08:53.969Z
tags: ["python", "django", "web-security"]
reading_time: 5
upvotes: 2
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Django: introducing django-integrity-policy

**[Adam Johnson](https://daily.dev/sources/adamj)** · 5 min read · 2 upvotes · 1 comments

## Summary

A new Django middleware package, django-integrity-policy, has been released to support the Integrity-Policy HTTP response header. This header, supported in Firefox 145+ and Chrome 138+, allows websites to require integrity attributes on all scripts and stylesheets, enforcing subresource integrity as a defense against supply chain attacks. The post explains how to configure the middleware and pair it with django-sri for generating hashed static file tags. The author also shares that the package was built using Claude via two prompts in about 20 minutes of LLM-assisted development, saving several hours of grunt work.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://adamj.eu/tech/2026/05/31/introducing-django-integrity-policy>

## Similar posts on daily.dev

- [Integrity Policy - Monitoring and Enforcing the use of SRI](https://daily.dev/posts/integrity-policy---monitoring-and-enforcing-the-use-of-sri-dnedczosl) · Scott Helme · 0 upvotes · 0 comments
- [Capture JavaScript Integrity Metadata using CSP\!](https://daily.dev/posts/capture-javascript-integrity-metadata-using-csp--a3fia66py) · Scott Helme · 1 upvotes · 0 comments
- [Eating Our Own Dogfood: What Running Report URI on Report URI Taught Us](https://daily.dev/posts/eating-our-own-dogfood-what-running-report-uri-on-report-uri-taught-us-zqa8mof5k) · Scott Helme · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#django](https://daily.dev/tags/django), [#web-security](https://daily.dev/tags/web-security)

[View this post on daily.dev](https://daily.dev/posts/django-introducing-django-integrity-policy-pznzfgj4j)
