fix: Remove MS-Author-Via header

This commit is contained in:
Joachim Van Herwegen
2022-08-05 15:58:29 +02:00
parent a99616acf2
commit 21b2850696
6 changed files with 2 additions and 26 deletions

View File

@@ -121,12 +121,6 @@ describe('An http server with middleware', (): void => {
expect(splitCommaSeparated(exposed)).toContain('Location');
});
it('exposes the MS-Author-Via header via CORS.', async(): Promise<void> => {
const res = await request(server).get('/').expect(200);
const exposed = res.header['access-control-expose-headers'];
expect(splitCommaSeparated(exposed)).toContain('MS-Author-Via');
});
it('exposes the WAC-Allow header via CORS.', async(): Promise<void> => {
const res = await request(server).get('/').expect(200);
const exposed = res.header['access-control-expose-headers'];