Support » Plugin: AMP » AMP on https, code with // instead using https

  • edis12

    (@edis12)


    Hi,
    I noticed increased number of errors in search console, and I wonder is it having something to do that I use Cloudflare with SSl, forcing in code to use // instead of https:// or http://

    example:

    <script src="//cdn.ampproject.org/v0.js" async></script>
     The tag 'script' is disallowed except in specific forms.
Viewing 3 replies - 1 through 3 (of 3 total)
  • WPChina

    (@wordpresschina)

    I was getting “The tag ‘script’ is disallowed except in specific forms.” errors 3 weeks ago:

    https://wordpress.org/support/topic/how-to-fix-this-warning-about-amp-ad-extension-js-script/#post-8212748

    According to the thread above, other people appear to *not* see the error. But I saw it all over on multiple sites. So we removed the google ad code.

    But in your situation it’s odd that it is showing on code pulling in AMP’s own js…. odd…

    Plugin Author Mohammad Jangda

    (@batmoo)

    > I wonder is it having something to do that I use Cloudflare with SSl, forcing in code to use // instead of https:// or http://

    Yes, that’s been a common issue with other Cloudflare users as well.

    edis12

    (@edis12)

    I found that issue is caused by CF and WP-rocket, mostly by wp-rocket. When I disable wp-rocket and CloudFlare for that part of the web site, I found only one error, html tag for AMP (before it was several).
    I disable plugin for now, when I get some free time I will try to fix, but anybody having now same issue: look into wp rocket and CF as a cause of errors.

    • This reply was modified 1 year ago by  edis12.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AMP on https, code with // instead using https’ is closed to new replies.