Google recaptcha public and private key

人走茶凉 提交于 2019-12-10 10:17:35

问题


We are using google recaptcha in one of our projects. To get the private and public key for captcha we just used the url as http://localhost:4345/. Can the same private and public key be used in live site also.


回答1:


Yes that's perfectly ok to use the same key pair for both local testing and server deployment (as long as you keep your private key a secret). On the other hand, if you did not select the "global key" option, the keys are unique to your domain and sub-domains (event though all keys will again work on localhost without any problem).




回答2:


When you generate a key for the recaptcha, if you check the checkbox to generate it globally, it will work. See in the image



来源:https://stackoverflow.com/questions/5839625/google-recaptcha-public-and-private-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!