Critical Error: Custom JavaScript is not allowed
-
Hi
I am getting this error in the AMP Validator:
“Custom JavaScript is not allowed. CUSTOM_JAVASCRIPT_DISALLOWED
line 32, column 1”This is line 32:
<script>if (document.location.protocol != “https:”) {document.location = document.URL.replace(/^http:/i, “https:”);}</script><script type=’text/javascript’ src=’https://cdn.ampproject.org/v0.js’ async></script>
Link to the validator page:
This error is there for all my pages.
Please help.
Best Regards
Narinder
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Critical Error: Custom JavaScript is not allowed’ is closed to new replies.