diff --git a/integration_test/test_service.test.ts b/integration_test/test_service.test.ts index c92f4559..bf39cf1a 100644 --- a/integration_test/test_service.test.ts +++ b/integration_test/test_service.test.ts @@ -1,5 +1,8 @@ import axios from 'axios'; +// Fix CORS on API assuming APIGateway has been implemented as described at https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors-console.html +axios.defaults.adapter = require('axios/lib/adapters/http'); + test('200 Response', async () => { console.log('env ->', process.env);