Authlogic works through curl but not browser

This is probably due to rails as authlogic, but I'm pretty stuck. If I use curl to request url like this:

curl http://neevor:l3ftcas3@localhost:3000/users/alerts/1.xml

I get the desired result. However, if I try to do the same using a browser, I get:

Redirected to http://192.168.0.49:3000/login
Filter chain halted as [:require_login] rendered_or_redirected.

which is a regular login page.

Thanks for any help.

+3
source share
1 answer

Which browser are you using? Some browsers do not allow usernames and passwords in URLs, for example, IE stops resolving this . I believe FireFox also prohibits this.

0
source

Source: https://habr.com/ru/post/1709051/


All Articles