Merge pull request #43 from calcom/fix/rewrite-headers

pull/9078/head
Agusti Fernandez 2022-04-15 19:00:41 +02:00 committed by GitHub
commit 892bce8193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ module.exports = withTM({
async headers() {
return [
{
// matching all API routes
source: "/api/:path*",
// matching all routes, because we redirect to API in rewrites
source: "/:path*",
headers: [
{ key: "Access-Control-Allow-Credentials", value: "true" },
{ key: "Access-Control-Allow-Origin", value: "*" },