also i am using cloudflare CDN.
Thanks for reaching out. Unfortunately there may be regional restrictions which are outside of our control which may impact setup. We have a GitHub issue which you can find below, with other users reported similar issues:
https://github.com/google/site-kit-wp/issues/1466
have you found a solution plz ???
@twins22 If you are in a region with AMP or Google service restrictions won’t work as expected. While some users in the Github issue were able to successfully setup Site Kit the solutions or workarounds are not possible by changes to the plugin.
Hello
my site Looks like the AMP CDN is restricted in my region, which could interfere with setup on the Site Kit service.
thank you
I’m getting this message too. I’m based in Japan, but my server is in the US, which I think should be where you are checking, so I don’t understand why this error is being displayed. Is it checking my physical location? And is Japan really not supported?
Update: I found that this URL was being blocked by my Content Security Policy. Adding this to the connect-src solved the problem for me.
https://cdn.ampproject.org
@martin_bailey Many thanks for sharing what worked for you in this case. The plugin does perform a check based on whether AMP library resources are accessible. You’re correct that such CSP configurations can indeed result in setup failure. I will check for that same specific “amp_cdn_restricted” notice after applying similar CSP restrictions.
We can also keep a note of this as an additional check for impacted users, many thanks for sharing.