Skip to content

Commit 627ac11

Browse files
authored
feat: allow cross-origin use of og images (#839)
closes #801 > [!NOTE] > The header name uses lowercase because the other `access-control-allow-origin` uses also lowercase. > https://github.com/search?q=repo%3Ajsr-io%2Fjsr%20access-control-allow-origin&type=code
1 parent 3560ae9 commit 627ac11

File tree

1 file changed

+1
-0
lines changed
  • frontend/routes/package

1 file changed

+1
-0
lines changed

frontend/routes/package/og.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ export const handler = define.handlers({
395395

396396
return new Response(await ogpImage.encode(), {
397397
headers: {
398+
"access-control-allow-origin": "*",
398399
"Content-Type": "image/png",
399400
},
400401
});

0 commit comments

Comments
 (0)