Three issues: (Free version) Missing file, hostname, and amp-iframe issue
-
- A “404 error” appeared in my server logs from GET /wp-content/plugins/cookie-notice/assets/chartjs/chart.umd.js
- The plugin code adds www to the host name for my staging site. — staging.garriganenterprises.com (see below)
<amp-iframe layout="fill" sandbox="allow-scripts allow-same-origin" src="https://www.staging.garriganenterprises.com/?cn-amp-consent-iframe=34943057b4" class="i-amphtml-layout-fill i-amphtml-layout-size-defined i-amphtml-element i-amphtml-built i-amphtml-layout" i-amphtml-layout="fill" frameborder="0" style="--loader-delay-offset: 74ms !important;">The plugin does not function properly for AMP pages. I do not see documentation to resolve this issue.
Origin of <amp-iframe> must not be equal to container
<amp-iframe class="i-amphtml-layout-fill i-…otbuilt i-amphtml-error" layout="fill" sandbox="allow-scripts allow-same-origin" src="https://www.garriganente…onsent-iframe=34943057b4" i-amphtml-layout="fill">
if allow-same-origin is set. See https://github.com/ampproject/amphtml/blob/main/docs/spec/amp-iframe-origin-policy.md for details. error-reporting.js:213:15By leveraging the NGINX directive sub_filter I can temporally work around both the amp-iframe issue and the host name issue.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Three issues: (Free version) Missing file, hostname, and amp-iframe issue’ is closed to new replies.