我在使用securesocial时遇到了一个错误。模板中的表单操作,当它在url中显示我的IP时,
在localhost网址上工作的是http://localhost:9005/authenticate/userpass,
,但当我把它放在服务器域上时,我遇到了一个错误
<form action="http://192.168.1.100:9005/authenticate/userpass" autocomplete="off" method="POST">
请帮我解决问题,我想用主机名示例http://test.mysecuresocial.com/authenticate/userpass
替换IP答案 0 :(得分:1)
<form action="/authenticate/userpass" autocomplete="off" method="POST">
它会自动检测,如果您的程序在网络上,那么它将获取主机名,在您的电脑上它将采用localhost