Skip to content

Commit

Permalink
Merge pull request #310 from gnosisguild/fix-cors
Browse files Browse the repository at this point in the history
Fix CORS issue when posting permissions from other websites
  • Loading branch information
jfschwarz authored Jan 2, 2025
2 parents f9dd69a + 648aebe commit ca12eec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const nextConfig = {
},
],
},
{
source: "/api/permissions",
headers: [{ key: "Access-Control-Allow-Origin", value: "*" }],
},
]
},
}
Expand Down
2 changes: 1 addition & 1 deletion packages/deployments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"installConfig": {
"hoistingLimits": "workspaces"
}
}
}
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@
"installConfig": {
"hoistingLimits": "workspaces"
}
}
}
2 changes: 1 addition & 1 deletion packages/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"installConfig": {
"hoistingLimits": "workspaces"
}
}
}

0 comments on commit ca12eec

Please sign in to comment.