Skip to content

Commit

Permalink
Support cross-origin
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Jun 16, 2024
1 parent 308c813 commit ccd922b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ router.get("/favicon.ico", (ctx) => {
});
router.get("/:iconSlug/:color?/:darkModeColor?", (ctx) => {
const { method, url } = ctx.request;

ctx.response.headers.set("Access-Control-Allow-Origin", "*");
ctx.response.headers.set(
"Cache-Control",
"public, max-age=86400, s-maxage=31536000, stale-while-revalidate=604800",
Expand Down

0 comments on commit ccd922b

Please sign in to comment.