Question : axios Cross origin http://localhost forbidden
Answered by : gazedge
// add the following to avoid axios cross origin issues when in test
axios.defaults.adapter = require('axios/lib/adapters/http')
Source : | Last Update : Tue, 16 Feb 21
Question : axios cors http localhost forbidden
Answered by : ugliest-unicorn-38h9ztwef759
{ // jest config: // ... testEnvironment: 'node' // ...
}
Source : https://stackoverflow.com/questions/67555622/jest-express-error-cross-origin-http-localhost-forbidden | Last Update : Thu, 28 Apr 22