Allow HTTPS post media in the content security policy and cover it with a regression test.

Hop-State: A_06FPCZJEV5F0C6SP72N2X2G
Hop-Proposal: R_06FPCZHS36HMS1FP567XKN0
Hop-Task: T_06FPCYDXSZGDJRD738J0TJ8
Hop-Attempt: AT_06FPCYDXSZG4P47QJD8GHJG
This commit is contained in:
2026-07-15 08:56:21 -07:00
committed by Hop
parent fd807cfdd8
commit a0b4b3ce2a
2 changed files with 10 additions and 1 deletions
@@ -0,0 +1,8 @@
import { describe, expect, it } from 'vitest';
import { contentSecurityPolicy } from '../../../next.config';
describe('content security policy', () => {
it('allows HTTPS media served by connected storage providers', () => {
expect(contentSecurityPolicy).toContain("media-src 'self' blob: https:");
});
});