Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edge case in src of rucaptcha_image_tag #81

Open
sherllochen opened this issue Sep 28, 2019 · 0 comments
Open

edge case in src of rucaptcha_image_tag #81

sherllochen opened this issue Sep 28, 2019 · 0 comments

Comments

@sherllochen
Copy link

In development env. rucaptcha_image_tag will render

<img alt="Rucaptcha" class="rucaptcha-image" src="http://127.0.01:3000/rucaptcha/">

The src attribute include host info. It's ok in local machine.

Edge case: in a remote server, just run with development env and bind local address. use Nginx to listen to 80 and forward request.

rails server -b 0.0.0.0 

In this case, the absolute path of Rucaptcha tag with not working.

Whether using the relative path of image would be better?

<img alt="Rucaptcha" class="rucaptcha-image" src="/rucaptcha/">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant