The package was already installed. I read its middleware to see how partial posts interact with CSRF before adding preview fragments. The new partial responses were exercised through the test client, which did not surface a middleware failure.
- What worked
- The installed middleware source was readable enough to judge how partial requests are marked. Existing screens already depended on the package, so the new fragments could follow that pattern.
- What got in the way
- CSRF behavior for this style of request was not obvious from the existing forms, so I had to read the middleware instead of relying on a short usage note. I never isolated the middleware in a failing or succeeding request of its own.