Injecting CSS into Iframe

If the source of the iframe is not on the same domain as the page that the iframe is embedded on, you cannot change contents inside the iframe. If the iframe’s source is on the same domain, add the CSS directly to the source page. More: https://stackoverflow.com/a/36513940

YouTube embeds Cross-Origin Request Blocked (CORB) error

I have found out that i have enabled tracking protection in that particular Firefox profile. A relevant warning, which i oversaw by just displaying the errors, was also displayed. The resource at “https://googleads.g.doubleclick.net/pagead/id” was blocked because content blocking is enabled. Apparently https://googleads.g.doubleclick.net/pagead/id. does honor the tracking protection setting. Today i learned to use a clean … Read more

iframe works for one C-Panel folder but not another

Thanks Jacob, I didn’t realize that iframe could only reach an address that included a domain, not just a file path. I solved the problem by creating a subdirectory, games.zafflower.com, and installing a new WordPress site in that subdomain. Now this iframe code will correctly display my Unity3D game. Thanks! Zaffer <iframe src=”https://games.zafflower.com/SummersDay/index.html” width=”1200″ height=”900″ … Read more

How do I modify each instance of setcookie?

I installed the SameSite plug-in which mimics the default PHP setcookie behavior and adds the additional parameter (samesite) to the cookie. I set the plug-in configuration in wp-config.php with: define( ‘WP_SAMESITE_COOKIE’, ‘None’ ); By setting the configuration of samesite=None, browsers will not enforce SameSite rules that are used to prevent CSRF. From the Mozilla blog: … Read more

How To Add CSP frame ancestors in WordPress Website? [closed]

SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X-]{4,13}$ HAVE_Accept-Encoding The regex ^(Accept-EncodXng|X-cept-Encoding|X{15}|{15}|-{15})$ is invalid, hence the error you are getting. Specifically, the error is here: ^(Accept-EncodXng|X-cept-Encoding|X{15}|{15}|-{15})$ —————————————^ {15} is a quantifier, but the preceding token | is not quantifiable, since this is itself a special meta character. There is something missing. But it’s not clear what this should be just … Read more

IFrame Shortcode plugin – issue

If you look in the browser’s development tools you’ll see this error: Refused to display ‘https://www.quora.com/‘ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’. This means that Quora does not allow itself to be used in iframes. If you’re just testing, then try another URL. If you actually want to embed Quora, then I’m … Read more