加载资源失败:服务器响应状态为400(错误请求)Angular

时间:2018-08-16 15:01:20

标签: html angular web

所以这是我的第一个Angular应用程序,对此我一无所知,当我第一次打开chrome开发人员工具时,出现了以上错误消息。 这是我的app.component.ts

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'my-first-project';
}

这是我的app.component.html

<h2>test 1 </h2>
<p>Their could can widen ten she any. As so we smart those money in. Am wrote up whole so tears sense oh. Absolute required of reserved in offering no. How sense found our those gay again taken the. Had mrs outweigh desirous sex overcame. Improved property reserved disposal do offering me.</p>

1 个答案:

答案 0 :(得分:0)

https://api.ciuvo.com/api/analyze返回错误请求错误,因为所提供的url在查询字符串参数的开头包含“&”字符:

http://localhost:4200/&version=2.1.3&tag=threesixty&uuid=003A3713-6F00-45F9-B569-FFF8A78690F6

应该是:

http://localhost:4200/?version=2.1.3&tag=threesixty&uuid=003A3713-6F00-45F9-B569-FFF8A78690F6