前端请求报错?

  • 回答 (3)
  • 关注 (0)
  • 查看 (125)

Failed to load https://tmt.api.qcloud.com/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.0.113:8020' is therefore not allowed access. The response had HTTP status code 403. 用ajax请求一直报错

用户1510459用户1510459提问于
akjok54stay hungry stay foolish回答于
MyLove回答于

你没设置Access-Control-Allow-Origin”头吧,看这里:https://cloud.tencent.com/document/product/436/13361

人生的旅途辣鸡前端回答于

需要添加“Access-Control-Allow-Origin”标头

扫码关注云+社区