How to solve the Cross-domain problem with vue-resourc

vue gets the interface on https://y.qq.com/m/index.html QQ Music
clipboard.png
https://c.y.qq.com/musichall/...
methods: {


},
:
clipboard.png
how to solve this problem? I use jsonp, not to package this cross-domain problem, but I can"t get the data

.
Apr.03,2021

CORS and jsonp both need server-side cooperation. It is recommended to use server-side relay request to implement, similar to koa-proxy this package

Menu