What's your biggest current challenge? Have your say in Community Polls along the right column.

i am trying to add createcontent secuirty policy for our store front,

Solved

i am trying to add createcontent secuirty policy for our store front,

Naga-anniemos
New Member
4 0 0

I am new to store front changes, in the code area, i am trying to add createcontent security policy for our store front. how can i go about it ?is there any cybersecurity based app i can install to run intrusion detection system for our website? a customer showed us an imposter website similar to our name and copying our products and repost

Accepted Solution (1)

PageFly-Theodor
Shopify Partner
691 86 104

This is an accepted solution.

Hi @Naga-anniemos ,
This is Theodore from PageFly - Shopify Page Builder App.

 

  • Go to your Shopify admin panel > Online Store > Themes.
  • Find your theme and click Actions > Edit code.
  • Locate the layout.liquid file (or a similar template responsible for the overall website layout).
  • Add the following code snippet within the <head> section of the layout.liquid file, replacing the placeholders with your specific values:

 

<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://cdn.shopify.com; style-src 'self' https://fonts.googleapis.com; img-src 'self' https://cdn.shopify.com data:;">

 

 


Best regards,
Theodore | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 3 (3)

PageFly-Theodor
Shopify Partner
691 86 104

This is an accepted solution.

Hi @Naga-anniemos ,
This is Theodore from PageFly - Shopify Page Builder App.

 

  • Go to your Shopify admin panel > Online Store > Themes.
  • Find your theme and click Actions > Edit code.
  • Locate the layout.liquid file (or a similar template responsible for the overall website layout).
  • Add the following code snippet within the <head> section of the layout.liquid file, replacing the placeholders with your specific values:

 

<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://cdn.shopify.com; style-src 'self' https://fonts.googleapis.com; img-src 'self' https://cdn.shopify.com data:;">

 

 


Best regards,
Theodore | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Naga-anniemos
New Member
4 0 0

Thank you so much was really helpful.

 

regards

 

Naga-anniemos
New Member
4 0 0

@PageFly-Theodor 

I applied this onto the website header changing from  <meta name="google-site-verification" content="pnr1d00MiIytQJgC7p1Fq2AWs4Hq2Ds67ZyENouF42Q" /> 

the banner on the live website under the store name vanished and i couldnt understand what pnr1d..... meant, 

 

is there any way where you can redo the code you suggested to fit in above site verification and content="pnr1d00..... into it, so there wont any changes to my live website ?

 

Thanks

nagashree