请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

api接口是不是出问题了,评论和收藏文章fetch都失败

api接口是不是出问题了,评论和收藏文章fetch都失败

正在回答 回答被采纳积分+3

1回答

Parry 2017-09-20 10:00:07

具体返回什么错误了?

0 回复 有任何疑惑可以回复我~
  • 提问者 sticktong #1
    GET http://newsapi.gugujiankong.com/Handler.ashx?action=uc&userid=undefined&uniquekey=161028202106247 500 (Internal Server Error)
    
    Fetch API cannot load http://newsapi.gugujiankong.com/Handler.ashx?action=uc&userid=undefined&uniquekey=161028202106247. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 500. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
    
    :8080/#/details/161028202106247?_k=z672r2:1 Uncaught (in promise) TypeError: Failed to fetch
    回复 有任何疑惑可以回复我~ 2017-09-20 10:41:54
  • 提问者 sticktong #2
    GET http://newsapi.gugujiankong.com/Handler.ashx?action=uc&userid=undefined&uniquekey=161028202106247 500 (Internal Server Error)
    回复 有任何疑惑可以回复我~ 2017-09-20 10:42:54
  • 提问者 sticktong #3
    Fetch API cannot load http://newsapi.gugujiankong.com/Handler.ashx?action=uc&userid=undefined&uniquekey=161028202106247. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. The response had HTTP status code 500. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
    回复 有任何疑惑可以回复我~ 2017-09-20 10:43:13
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号