Skip to content

Commit

Permalink
chore: Use explicit codehike lighter URLs for CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
mohebifar committed Jan 23, 2025
1 parent 9cf944a commit 74b80c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/frontend/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export async function middleware(request: NextRequest) {
return res;
}

const codehikeUrl = "https://lighter.codehike.org/grammars/*";
const codehikeUrl =
"https://lighter.codehike.org/grammars/tsx.json https://lighter.codehike.org/grammars/json.json";

if (
!request.nextUrl.pathname.startsWith("/api") &&
Expand Down

0 comments on commit 74b80c6

Please sign in to comment.