Skip to content

Commit

Permalink
Project: update cors headers for export
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannaPeanut committed Feb 26, 2025
1 parent 9c55d84 commit 085ea52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/api/projects/[slug]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { featureCollection, lineString } from "@turf/helpers"
const corsHeaders = {
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type, Authorization",
"Access-Control-Allow-Methods": "GET",
}

export async function GET(request: Request, { params }: { params: Promise<{ slug: string }> }) {
Expand Down

0 comments on commit 085ea52

Please sign in to comment.