-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
28 deletions.
There are no files selected for viewing
30 changes: 16 additions & 14 deletions
30
src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/assets/.ic-assets.json5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
[ | ||
{ | ||
"match": "**/*", | ||
// Provides a base set of security headers that will work for most dapps. | ||
// Any headers you manually specify will override the headers provided by the policy. | ||
// See 'dfx info security-policy' to see the policy and for advice on how to harden the headers. | ||
// Once you improved the headers for your dapp, set the security policy to "hardened" to disable the warning. | ||
// Options are: "hardened" | "standard" | "disabled". | ||
"security_policy": "standard", | ||
// Uncomment to disable the warning about using the | ||
// standard security policy, if you understand the risk | ||
// "disable_security_policy_warning": true, | ||
{ | ||
"match": "**/*", | ||
|
||
// Uncomment to redirect all requests from .raw.icp0.io to .icp0.io | ||
// "allow_raw_access": false | ||
}, | ||
// Provides a base set of security headers that will work for most dapps. | ||
// Any headers you manually specify will override the headers provided by the policy. | ||
// See 'dfx info security-policy' to see the policy and for advice on how to harden the headers. | ||
// Once you improved the headers for your dapp, set the security policy to "hardened" to disable the warning. | ||
// Options are: "hardened" | "standard" | "disabled". | ||
"security_policy": "standard", | ||
|
||
// Uncomment to disable the warning about using the | ||
// standard security policy, if you understand the risk | ||
// "disable_security_policy_warning": true, | ||
|
||
// Uncomment to redirect all requests from .raw.icp0.io to .icp0.io | ||
// "allow_raw_access": false | ||
}, | ||
] |
30 changes: 16 additions & 14 deletions
30
src/dfx/assets/project_templates/vue/src/__frontend_name__/public/.ic-assets.json5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
[ | ||
{ | ||
"match": "**/*", | ||
// Provides a base set of security headers that will work for most dapps. | ||
// Any headers you manually specify will override the headers provided by the policy. | ||
// See 'dfx info security-policy' to see the policy and for advice on how to harden the headers. | ||
// Once you improved the headers for your dapp, set the security policy to "hardened" to disable the warning. | ||
// Options are: "hardened" | "standard" | "disabled". | ||
"security_policy": "standard", | ||
// Uncomment to disable the warning about using the | ||
// standard security policy, if you understand the risk | ||
// "disable_security_policy_warning": true, | ||
{ | ||
"match": "**/*", | ||
|
||
// Uncomment to redirect all requests from .raw.icp0.io to .icp0.io | ||
// "allow_raw_access": false | ||
}, | ||
// Provides a base set of security headers that will work for most dapps. | ||
// Any headers you manually specify will override the headers provided by the policy. | ||
// See 'dfx info security-policy' to see the policy and for advice on how to harden the headers. | ||
// Once you improved the headers for your dapp, set the security policy to "hardened" to disable the warning. | ||
// Options are: "hardened" | "standard" | "disabled". | ||
"security_policy": "standard", | ||
|
||
// Uncomment to disable the warning about using the | ||
// standard security policy, if you understand the risk | ||
// "disable_security_policy_warning": true, | ||
|
||
// Uncomment to redirect all requests from .raw.icp0.io to .icp0.io | ||
// "allow_raw_access": false | ||
}, | ||
] |