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

使用反向代理后 form action 域名不正确 #27

Open
otcpage opened this issue Sep 8, 2022 · 0 comments
Open

使用反向代理后 form action 域名不正确 #27

otcpage opened this issue Sep 8, 2022 · 0 comments

Comments

@otcpage
Copy link

otcpage commented Sep 8, 2022

1.首先设置 laravel APP_URL=a.domain
2.在 AppServiceProvider boot 中添加 app('url')->forceRootUrl(env('APP_URL'));
3.在 a.domain 服务器将流量转到 admin ip
然后访问 a.domain/admin 后台中所有form action地址仍然是IP

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