javascript - vue axios requests Douban data across domains, but the proxy service is also configured, and it is still cross-domain! Please solve
巴扎黑
巴扎黑 2017-05-19 10:35:30
0
3
589

巴扎黑
巴扎黑

reply all(3)
大家讲道理

Change the address in the ajax request to '/api/movie/in_theaters' or 'http://localhost:8880/api/mov...'

给我你的怀抱

With a proxy, you don’t need to bring the domain name when sending a request.
Change to this:

_this.axios.get('/api/movie/in_theater')
洪涛

The request address directly writes /api/movie/in_theaters, instead of the complete interface of Douban

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template