The admin panel is a static page with client-side React that gets prerendered at build time. The nonce-based CSP from middleware doesn't work for static pages because the nonce is generated per-request but the HTML is served from cache without it. Exclude /admin from the middleware matcher so its scripts can load normally.
2.3 KiB
2.3 KiB