files/en-us/web/http/reference/headers/content-security-policy/prefetch-src/index.md
{{Deprecated_Header}}{{Non-standard_header}}
The HTTP {{HTTPHeader("Content-Security-Policy")}} (CSP)
prefetch-src directive specifies valid resources that may
be prefetched or prerendered.
Content-Security-Policy: prefetch-src 'none';
Content-Security-Policy: prefetch-src <source-expression-list>;
This directive may have one of the following values:
'none'
<source-expression-list>
Given a page with the following Content Security Policy:
Content-Security-Policy: prefetch-src https://example.com/
Fetches for the following code will return network errors, as the URLs provided do not
match prefetch-src's source list:
<link rel="prefetch" href="https://example.org/" />
<link rel="prerender" href="https://example.org/" />
{{Specifications}}
{{Compat}}