files/en-us/web/http/reference/headers/content-security-policy/media-src/index.md
The HTTP {{HTTPHeader("Content-Security-Policy")}} (CSP)
media-src directive specifies valid sources for loading
media using the {{HTMLElement("audio")}} and {{HTMLElement("video")}} elements.
Content-Security-Policy: media-src 'none';
Content-Security-Policy: media-src <source-expression-list>;
This directive may have one of the following values:
'none'
<source-expression-list>
Given this CSP header:
Content-Security-Policy: media-src https://example.com/
The following {{HTMLElement("audio")}}, {{HTMLElement("video")}} and {{HTMLElement("track")}} elements are blocked and won't load:
<audio src="https://not-example.com/audio"></audio>
<video src="https://not-example.com/video">
<track kind="subtitles" src="https://not-example.com/subtitles" />
</video>
{{Specifications}}
{{Compat}}