diff --git a/express-api/src/middleware/headerHandler.ts b/express-api/src/middleware/headerHandler.ts index 14944de13..6fdee69dc 100644 --- a/express-api/src/middleware/headerHandler.ts +++ b/express-api/src/middleware/headerHandler.ts @@ -1,7 +1,7 @@ import { NextFunction, Response } from 'express'; const headerHandler: unknown = (req: Request, res: Response, next: NextFunction) => { - res.header('Access-Control-Allow-Origin', '*'); + //res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Methods', 'GET,PUT,PATCH,POST,DELETE'); res.header('Access-Control-Allow-Headers', 'Content-Type, Accept, Authorization'); next(); diff --git a/express-api/tests/integration/middleware/headerHandler.test.ts b/express-api/tests/integration/middleware/headerHandler.test.ts index 5d0310136..799f40a81 100644 --- a/express-api/tests/integration/middleware/headerHandler.test.ts +++ b/express-api/tests/integration/middleware/headerHandler.test.ts @@ -9,7 +9,6 @@ describe('INTEGRATION - headerHandler middleware', () => { it('should set headers with expected values', async () => { const response = await request.get('/v2/health'); // Remember to use lower case for header keys - expect(response.header['access-control-allow-origin']).toBe('*'); expect(response.header['access-control-allow-methods']).toBe('GET,PUT,PATCH,POST,DELETE'); expect(response.header['access-control-allow-headers']).toBe( 'Content-Type, Accept, Authorization', diff --git a/react-app/index.html b/react-app/index.html index beccf76ef..51e58cd58 100644 --- a/react-app/index.html +++ b/react-app/index.html @@ -1,22 +1,28 @@ +
+ + +