Display raw image content-type in vue.js
问题 I am retrieving an image from a REST API via an HTTP GET with a request body. I've managed to check the returned content via this test using node.js and chai.js : expect(res).to.have.header('Content-Type', 'image/jpeg'); expect(res).to.have.header('Access-Control-Allow-Origin', '*'); expect(res).to.have.header('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin, X-Requested-With, Content-Type, Accept, Authorization'); expect(res).to.have.header('Access-Control-Allow-Methods'