Skip to content

Commit

Permalink
Adding cors to the default response
Browse files Browse the repository at this point in the history
  • Loading branch information
travjenkins committed Oct 11, 2023
1 parent 6f98bb4 commit 4a00b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supabase/functions/billing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ serve(async (req) => {
}];
}

res[1] = { ...res[1], headers: { ...res[1]?.headers || {} } };
res[1] = { ...res[1], headers: { ...res[1]?.headers || billingResponseHeaders } };

return new Response(...res);
});

0 comments on commit 4a00b46

Please sign in to comment.