ruby on rails - Recaptcha error -


i have problem recaptcha gem. i'm using ubuntu on virtual machine (virtualbox). uses bridged network interface card, have internet access there , can see ubuntu host computer.

when run rails s , go to

  • 127.0.0.1:3000 on virtual machine fine.
  • 192.168.0.103:3000 on host machine there error recaptcha box.

input error: invalid referer box supposed be.

why , how fix this?

but, when tried host same application server same pair of keys, not generate error but, display "input error - invalid referer" instead of captcha in form.

because, when getting pair of keys google api, specify domain name there. in that, use keys in local system, enter domain "localhost". but, these pair of keys not work when deploy application in server.

so, application work in remote host, should pair of keys google api domain name, going deploy application. , use them in application.

note: can have new pair of keys recaptcha using following link:
http://www.google.com/recaptcha/whyrecaptcha


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -