We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f330d5 commit c2401e9Copy full SHA for c2401e9
packages/gitbook/tests/embed.test.ts
@@ -21,18 +21,4 @@ describe('embed script', () => {
21
const body = await response.text();
22
expect(body).toContain('w.GitBook');
23
});
24
-
25
- it('responds to OPTIONS requests with CORS headers for cross-domain insertion', async () => {
26
- const response = await fetch(EMBED_SCRIPT_URL, {
27
- method: 'OPTIONS',
28
- headers: {
29
- Origin: 'https://example.com',
30
- 'Access-Control-Request-Method': 'GET',
31
- },
32
- });
33
34
- expect(response.status).toBe(204);
35
- expect(response.headers.get('access-control-allow-origin')).toBe('*');
36
- expect(response.headers.get('access-control-allow-methods')).toContain('GET');
37
38
0 commit comments