angular - 指定端口时出现 404 错误
问题描述
我有一个用 VB6 编写的旧版应用程序,并使用最近因服务器更改而中断的 IEFrame.dll。我正在尝试调试它为什么坏了,但我无法让它在我的本地机器上工作。在我的本地机器上,URL 是这样的:
http://localhost:4200/landing
如果我导航到http://localhost:4200
页面加载,但如果我尝试导航到http://localhost:4200/landing
我得到一个 404。如果我在 FF 或 Chrome 中尝试相同的 URL,它会按预期工作。
那么有没有办法让 IEFrame.dll 中的 WebBrowser 控件在端口位于 URL 中间时工作?
这基本上是 VB 代码的样子:
Dim url As String
url = "http://localhost:4200/landing"
wb.Navigate2 url 'This works if there is no port specified
“着陆”是一条 Angular 路线。我是 Angular 的新手,实际上并没有编写这个特定的服务器代码,所以我不能确定是否有重定向。
解决方案
推荐阅读
- python - 是否可以制作依赖于上下文的功能?
- javascript - Angular 5 表单提交,奇怪的行为
- javascript - Javascript函数执行次数过多
- graphql - 记录 gql 标记的模板文字的输出?
- entity-framework - 使用 Include() 优化 EF Core 查询
- python - 不断更改 Tensorflow 中的相同变量
- amazon-web-services - 将数据从 AWS SQS 传输到 S3 的最佳方式是什么?
- php - php/mysql 响应式成像
- python - 使用 Python 线程的可执行文件的高 CPU 负载
- c# - 如何将 Windows.Forms.Checkbox(图像/绘画)覆盖为自定义复选框?