Title: AMP on https, code with // instead using https
Last modified: October 11, 2016

---

# AMP on https, code with // instead using https

 *  [edis12](https://wordpress.org/support/users/edis12/)
 * (@edis12)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/amp-on-https-code-with-instead-using-https/)
 * 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](https://wordpress.org/support/users/wordpresschina/)
 * (@wordpresschina)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/amp-on-https-code-with-instead-using-https/#post-8275259)
 * 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](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…
 *  [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * (@batmoo)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/amp-on-https-code-with-instead-using-https/#post-8276547)
 * > 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.
 *  Thread Starter [edis12](https://wordpress.org/support/users/edis12/)
 * (@edis12)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/amp-on-https-code-with-instead-using-https/#post-8280377)
 * 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 9 years, 6 months ago by [edis12](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [edis12](https://wordpress.org/support/users/edis12/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/amp-on-https-code-with-instead-using-https/#post-8280377)
 * Status: not resolved