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

Flask app里redirect时应在url前加入完整host #51

Open
MrZixi opened this issue Mar 31, 2021 · 2 comments
Open

Flask app里redirect时应在url前加入完整host #51

MrZixi opened this issue Mar 31, 2021 · 2 comments

Comments

@MrZixi
Copy link

MrZixi commented Mar 31, 2021

现在在启动网页端server之后redirect的路径时直接使用了绝对路径,如http://xxxx/table,而不是http://xxxx:pp/table,但是如果是在服务器上或者docker环境下使用就会出问题,暴露出的端口只能在第一次GET请求时成功,后续的网页资源由于路径原因全部无法使用。

@yhcc
Copy link
Member

yhcc commented Apr 10, 2021

很奇怪的是,我们也是通过docker使用,但是通过使用暴露的端口是ok的。或者您可以尝试一下端口转发来使用docker中的fitlog。

@MrZixi
Copy link
Author

MrZixi commented Apr 11, 2021

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

2 participants