Skip to content

Commit 1424f43

Browse files
committed
Merge branch 'fix-embeddable-cors' of https://github.com/GitbookIO/gitbook into fix-embeddable-cors
2 parents c2401e9 + 57625cd commit 1424f43

File tree

1 file changed

+2
-1
lines changed
  • packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/embed/script.js

1 file changed

+2
-1
lines changed

packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/embed/script.js/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ export const dynamic = 'force-static';
1010
const EMBEDDABLE_RESPONSE_HEADERS = {
1111
'Access-Control-Allow-Origin': '*',
1212
'Access-Control-Allow-Methods': 'GET, OPTIONS',
13+
'Access-Control-Allow-Headers': '*',
1314
'Cross-Origin-Resource-Policy': 'cross-origin',
14-
'Cache-Control': 'public, max-age=86400, stale-while-revalidate=604800',
15+
'Cache-Control': 'public, s-maxage=86400, stale-while-revalidate=604800',
1516
};
1617

1718
/**

0 commit comments

Comments
 (0)