{"id":29899,"date":"2022-01-05T01:26:31","date_gmt":"2022-01-05T01:26:31","guid":{"rendered":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/"},"modified":"2024-08-09T06:08:37","modified_gmt":"2024-08-09T06:08:37","slug":"iframe-not-showing-on-web-page","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/sg\/knowledgebase\/iframe-not-showing-on-web-page\/","title":{"rendered":"iFrame not showing on web page"},"content":{"rendered":"<h2>Error Message<\/h2>\n<p>In your browser, you may receive an error message relating to an iFrame. Examples of error messages include, but are not limited, to:<\/p>\n<ul>\n<li>Content Security Policy of your site blocks some resources<\/li>\n<li>Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute<\/li>\n<li>Unrecognized Content-Security-Policy directive &#8216;worker-src&#8217;<\/li>\n<li>Refused to display &#8216;{SITE}&#8217; in a frame because it set &#8216;X-Frame-Options&#8217; to &#8216;SAMEORIGIN&#8217;<\/li>\n<\/ul>\n<h2><strong>Scenario<\/strong><\/h2>\n<p>An embedded iFrame may not display on a web page\/website. This is due to strict security policies that Staq applies via NGINX. However, you have full control to tweak this, if required.<\/p>\n<h2><strong>Solution<\/strong><\/h2>\n<p>Below, is the solution to investigate and apply to show iFrames on a site:<\/p>\n<h3>Step 1<\/h3>\n<div dir=\"auto\">Firstly, open Inspect Element in Chrome and identify the issue message.<\/div>\n<div dir=\"auto\">\n<h3>Step 2<\/h3>\n<\/div>\n<div dir=\"auto\">Secondly, go to the Staq Panel of the website in question and click <strong>Nginx Config<\/strong>:<\/div>\n<div dir=\"auto\"><\/div>\n<div dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3316\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/01\/nginx-configurations-1-1024x542.png\" alt=\"\" width=\"1024\" height=\"542\" \/><\/div>\n<div dir=\"auto\"><\/div>\n<div dir=\"auto\">Based on the issue message in Step 1 above, you should be able to find the setting. Typically, you can try to change these settings in Staq:<\/div>\n<ul>\n<li dir=\"auto\">X-Frame-Options (HTTP header); and\/or<\/li>\n<li dir=\"auto\">Content-Security-Policy (HTTP header).<\/li>\n<\/ul>\n<p><strong>Please note that you will need to experiment between selecting one of them or selecting both by setting to EXCLUDE. In between your testing, please clear your history\/cache<\/strong><\/p>\n<div dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3551\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/01\/nginx-config-settings-1.png\" alt=\"\" width=\"649\" height=\"632\" \/><\/div>\n<div dir=\"auto\"><\/div>\n<h2>Refresh local browser<\/h2>\n<p>It&#8217;s possible that the iFrame may not work locally on your Chrome browser but may work on a different browser. Simply clear your Chrome cache and it should then work.<\/p>\n","protected":false},"featured_media":29623,"parent":0,"template":"","class_list":["post-29899","knowledgebase","type-knowledgebase","status-publish","has-post-thumbnail","hentry","categories-troubleshooting-other"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>iFrame not showing on web page - Managed Hosting Platform for WordPress<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iFrame not showing on web page - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Error Message In your browser, you may receive an error message relating to an iFrame. Examples of error messages include, but are not limited, to: Content Security Policy of your site blocks some resources Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute Unrecognized Content-Security-Policy directive &#8216;worker-src&#8217; Refused to&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-09T06:08:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/iframe.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/iframe-not-showing-on-web-page\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/iframe-not-showing-on-web-page\\\/\",\"name\":\"iFrame not showing on web page - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/iframe-not-showing-on-web-page\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/iframe-not-showing-on-web-page\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/iframe.png\",\"datePublished\":\"2022-01-05T01:26:31+00:00\",\"dateModified\":\"2024-08-09T06:08:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/iframe-not-showing-on-web-page\\\/#breadcrumb\"},\"inLanguage\":\"en-sg\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/iframe-not-showing-on-web-page\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/iframe-not-showing-on-web-page\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/iframe.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/iframe.png\",\"width\":1000,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/iframe-not-showing-on-web-page\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"iFrame not showing on web page\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-sg\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"iFrame not showing on web page - Managed Hosting Platform for WordPress","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/","og_locale":"en_US","og_type":"article","og_title":"iFrame not showing on web page - Managed Hosting Platform for WordPress","og_description":"Error Message In your browser, you may receive an error message relating to an iFrame. Examples of error messages include, but are not limited, to: Content Security Policy of your site blocks some resources Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute Unrecognized Content-Security-Policy directive &#8216;worker-src&#8217; Refused to&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2024-08-09T06:08:37+00:00","og_image":[{"width":1000,"height":500,"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/iframe.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/","name":"iFrame not showing on web page - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/iframe.png","datePublished":"2022-01-05T01:26:31+00:00","dateModified":"2024-08-09T06:08:37+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/#breadcrumb"},"inLanguage":"en-sg","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/"]}]},{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/iframe.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/iframe.png","width":1000,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/iframe-not-showing-on-web-page\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"iFrame not showing on web page"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-sg"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase\/29899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/media\/29623"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/media?parent=29899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}