最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Uncaught SecurityError: Blocked a frame with origin "https:www.google.com" from accessing a frame

programmeradmin2浏览0评论

I am using google reCaptcha v2.0 and this is working in the same domain when i am trying to do it with a sample html page but same thing is not working when I am trying to integrate with the full production page. After clicking on reCaptcha checkbox it's keep on loading for sometimes and after that it is throwing the error below in details.

Uncaught SecurityError: Blocked a frame with origin "" from accessing a frame with origin "". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

I have tried removing http, https and just kept // so that site protocol can match but no luck. Would be a great help if anyone has a solution here.

Thanks in advance.

I am using google reCaptcha v2.0 and this is working in the same domain when i am trying to do it with a sample html page but same thing is not working when I am trying to integrate with the full production page. After clicking on reCaptcha checkbox it's keep on loading for sometimes and after that it is throwing the error below in details.

Uncaught SecurityError: Blocked a frame with origin "https://www.google." from accessing a frame with origin "http://my.site.". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

I have tried removing http, https and just kept // so that site protocol can match but no luck. Would be a great help if anyone has a solution here.

Thanks in advance.

Share Improve this question asked May 26, 2016 at 10:27 Kshirodra MeherKshirodra Meher 2481 gold badge3 silver badges11 bronze badges 2
  • Just open your site with https://your-domain. and it will work – Simon Schüpbach Commented May 26, 2016 at 10:29
  • @SimonSchüpbach: But my site is not SSL enabled and I don't know what is the impact if will add a self certified SSL. Is there any thing else you can see here ? – Kshirodra Meher Commented May 26, 2016 at 10:32
Add a ment  | 

2 Answers 2

Reset to default 3

When the src is running on https, your web server must be SSL enabled

Change the recaptcha library URL from https to http

Chrome and other modern browsers will avoid mix HTTP with HTTPS.

发布评论

评论列表(0)

  1. 暂无评论