angular - 如何在 Azure 上使用 Net Core API 单独部署 Angular 7

标签 angular azure asp.net-core .net-core angular7

现在我有一个以 Angular 7 作为客户端的 .Net Core 应用程序

我在 Azure 上部署了 API 和客户端,但是我一直困惑于如何让客户端在到达 .Net Core 端点的 Azure 上工作。在我的登录发布请求中,我收到 404,但它适用于我的本地构建...我不确定我到底做错了什么?

    Request Method: POST
Status Code: 404 Not Found
Referrer Policy: no-referrer-when-downgrade

最佳答案

问题标题和实际问题不同。

您需要从应用程序级别检查是否有network/CORS问题 在发出登录请求时。

您需要检查 API 端点是否正常运行并按预期工作 一些工具,例如 POSTMAN .

如果您无法解决问题,我建议您添加应用程序 使用 login Request(Parameters) 进行洞察并检查自定义错误

关于angular - 如何在 Azure 上使用 Net Core API 单独部署 Angular 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59495804/

相关文章:

angular - 如何在 Angular2 中声明嵌套组件

Angular - 类型 'OperatorFunction<Response, Response>' 的参数不可分配给类型 'OperatorFunction<Object, Response>' 的参数

.net - 防伪 cookie token 和表单字段 token 不匹配 - Orchard 1.8.1

.net core 2 中未加载 jQuery Grid css

angular - 使用 TypeScript 以编程方式检查 Ionic 2 单选按钮

angular - 有没有办法在 ng2-bootstrap 中构建移动导航栏?

azure - 如何在 Azure 资源图 kusto 查询的输出中反射(reflect)层次结构?

Azure数据工厂: Source data set has a stored procedure with user-defined Table Type

c# - 如何制作使用 oninput 而不是 onchange 绑定(bind)的 EditForm 输入?

c# - EF 7(核心)。像 AddTransient 一样创建 DBContext