mozilla

Compare Revisions

Using Content Security Policy

Change Revisions

Revision 4762:

Revision 4762 by devdatta on

Revision 4763:

Revision 4763 by abarth on

Title:
Using Content Security Policy
Using Content Security Policy
Slug:
Security/CSP/Using_Content_Security_Policy
Security/CSP/Using_Content_Security_Policy
Tags:
Security, "Content Security Policy"
Security, "Content Security Policy"
Content:

Revision 4762
Revision 4763
n13    <h2>n13    <h2 id="Specifying_your_policy">
n25    <h2>n25    <h2 id="Writing_a_policy">
n29      A policy is described using a series of <a href="/en/Securin29      A policy is described using a series of <a href="/en/Securi
>ty/CSP/CSP_policy_directives" title="en/Security/CSP/CSP policy d>ty/CSP/CSP_policy_directives" title="en/Security/CSP/CSP policy d
>irectives">policy directives</a>, each of which describes the pol>irectives">policy directives</a>, each of which describes the pol
>icy for a certain resource type or policy area. Your policy must >icy for a certain resource type or policy area. Your policy shoul
>include at least the <code>allow</code> policy directive, which i>d include a&nbsp;<code>default-src</code>&nbsp;policy directive, 
>s a fallback for any resource type you don't explicitly establish>which is a fallback for any resource type you don't explicitly es
> a policy for.>tablish a policy for.
n34    <h2>n34    <h2 id="Examples:&nbsp;Common_use_cases">
n40    <h3>n40    <h3 id="Example_1">
n49    <h3>n49    <h3 id="Example_2">
n58    <h3>n58    <h3 id="Example_3">
n78    <h3>n78    <h3 id="Example_4">
n90    <h3>n90    <h3 id="Example_5">
n102    <h2>n102    <h2 id="Testing_your_policy">
n117    <h2>n117    <h2 id="See_also">
t126      </li>t
127      <li>
128        <a href="/en/Security/CSP/Default_CSP_restrictions" title
>="en/Security/CSP/Default CSP restrictions">Default CSP&nbsp;rest 
>rictions</a> 

Back to History