mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Expose WAC-Allow via CORS.
Closes https://github.com/solid/community-server/issues/873
This commit is contained in:
parent
a926839216
commit
0271536313
@ -19,7 +19,8 @@
|
||||
"Accept-Patch",
|
||||
"Location",
|
||||
"MS-Author-Via",
|
||||
"Updates-Via"
|
||||
"Updates-Via",
|
||||
"WAC-Allow"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -111,6 +111,12 @@ describe('An http server with middleware', (): void => {
|
||||
expect(exposed.split(/\s*,\s*/u)).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'];
|
||||
expect(exposed.split(/\s*,\s*/u)).toContain('WAC-Allow');
|
||||
});
|
||||
|
||||
it('exposes the Updates-Via header via CORS.', async(): Promise<void> => {
|
||||
const res = await request(server).get('/').expect(200);
|
||||
const exposed = res.header['access-control-expose-headers'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user