Title: iFrame issue
Last modified: October 21, 2021

---

# iFrame issue

 *  [anasantosuw](https://wordpress.org/support/users/anasantosuw/)
 * (@anasantosuw)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/iframe-issue-10/)
 * Why the iFrame fails to be loaded, in the console it says: “Refused to connect’

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [4 years, 6 months ago](https://wordpress.org/support/topic/iframe-issue-10/#post-14992956)
 * Please provide a link to a page on your site where we can see this. Thanks. You
   haven’t given use enough info to offer anything useful. Explain this iframe, 
   please.
 *  [Matias Benedetto](https://wordpress.org/support/users/mmaattiiaass/)
 * (@mmaattiiaass)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/iframe-issue-10/#post-14993135)
 * Hi [@anasantosuw](https://wordpress.org/support/users/anasantosuw/) to be able
   to load an iframe the server of the page (not your server) need to allow the 
   page to be framed in another domain.
    This is a security limitation. You can 
   learn more from it here: [https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP)
 * To test if you are inserting the iframe correctly you can test with sites that
   allow everyone to frame it for example Wikipedia:
 *     ```
       <iframe src="https://www.wikipedia.org" title="wikipedia">
       </iframe>
       ```
   
 * Test this iframe and check if it works as expected. After that, replace the URL
   with the site url you are trying to load. If you get the same ‘Refused to connect’
   error it means that you don’t have permission from that website to frame it. 
   Your domain needs to be allowed/whitelisted by the other server as described 
   in my first link.
 * I hope that helps.
    Best

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

The topic ‘iFrame issue’ is closed to new replies.

## Tags

 * [CSP](https://wordpress.org/support/topic-tag/csp/)
 * [iframe](https://wordpress.org/support/topic-tag/iframe/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Matias Benedetto](https://wordpress.org/support/users/mmaattiiaass/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/iframe-issue-10/#post-14993135)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
