Title: Refused to frame error
Last modified: May 5, 2021

---

# Refused to frame error

 *  Resolved [supamoov](https://wordpress.org/support/users/supamoov/)
 * (@supamoov)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/refused-to-frame-error-2/)
 * I am using advanced ads to display google adsense within the peepso plugin with
   the gecko theme. If I put the advanced ads widget on a page, an advertisement
   shows. If however I place the ads in the peepso ads placement to show ads in 
   the activity feed, nothing happens. I contacted peepso technical support and 
   received this response:
 * `Hello, I found an error in console while visiting your main activity page. Here
   is the error: Refused to frame \'https://pagead2.googlesyndication.com/\' because
   it violates the following Content Security Policy directive: \"frame-src cm.g.
   doubleclick.net googleads.g.doubleclick.net www.google.com accounts.google.com
   pagead2.googlesyndication.com/pagead/s/cookie_push.html gmsg: https://tpc.googlesyndication.
   com/sadbundle/$csp=er3$/2628816881047370273/970x250/index.html\". It seems that
   your adsense code is violates the content security policy.`
 * Does anyone recognise this and/or know how to resolve it?
 * Thanks
 * Andy
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frefused-to-frame-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/refused-to-frame-error-2/#post-14408759)
 * Hi supamoov,
 * Thanks for reporting your issue.
 * I have seen a similar error message before, but it only showed up in Chrome.
 * Advanced Ads doesn’t modify the AdSense code, and I guess you will see the same
   result if you paste the code that you directly copy from your AdSense account.
 * Is there any chance to see this error live in my browser, or can you only replicate
   it on your staging site?
 * Best regards,
    Joachim
 *  Thread Starter [supamoov](https://wordpress.org/support/users/supamoov/)
 * (@supamoov)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/refused-to-frame-error-2/#post-14408899)
 * Hi Joachim
    I checked with my ISP and reviewed the .htaccess file. There was 
   no CSP directives in it. I experimented by adding some and then removing them.
   It was having an effect – I managed to destroy the site’s style for example! 
   I’ve not been able to reproduce this issue however. I’ve asked the peepso support
   people where they saw the error, because I can’t find it. When I open the console
   there is no mention of it.
 * I’ve marked this as resolved and will create a new ticket with more information
   if I can find more evidence.
    Thanks Andy

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Refused to frame error’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [supamoov](https://wordpress.org/support/users/supamoov/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/refused-to-frame-error-2/#post-14408899)
 * Status: resolved