pdupavillon / express-recaptcha

Implementation of google recaptcha v2 & V3 solutions for express.js
MIT License
128 stars 22 forks source link

Recaptcha not showing #20

Closed Dizga closed 5 years ago

Dizga commented 5 years ago

Recaptcha is not showing It shows when I change the script src in index.js from <script src='//www.google.com/recaptcha/api.js'></script> to <script src='https://www.google.com/recaptcha/api.js'></script>

Am I missing something ?

pdupavillon commented 5 years ago

Hi @Dizga, Which browser do you use, and have you tried another browser ? This is a common technique called "relative reference" that you can find in the RFC : https://tools.ietf.org/html/rfc3986#section-4.2 That technique avoid specifying the scheme so the browser will download either in http or https the script depends on the website current scheme (avoid browser error when the website is in http and the script has an https url).

pdupavillon commented 5 years ago

Do you still facing that issue @Dizga ?

Dizga commented 5 years ago

Hey @pdupavillon, thx for your quick answer and sorry mine was so late.. Looks like I forgot to disable NoScript, I should have double-checked before posting this issue, my bad. This is working pretty well now. Thank for this great tool !