I got the data with postman in json:api at drupal. But I has error of CORB in Vue-resource.get() with code blew:
data(){ return{ cyclePic:[], rootUrl:this.$http.options.root, header:{headers:{Accept:'application/vnd.api+json', 'Content-type':'application/vnd.api+json', Authorization:"Basic dG1wQWRtaW46VG1wQDEyMyM0NTY="} } } }, created(){ this.getCycleList() }, methods:{ getCycleList(){ this.$http.get('jsonapi/node/banner?include=field_image',this.header).then(result=>{ console.log(result) if(result.ok && result.status===200){ this.cyclePic=result.body.included console.log(this.cyclePic) }else{ Toast('Fail') } }) }
what i miss some thing?