Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: CORS rule

Richie McIlroy08ed47333124
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index 89bcc3350..e249a67c8 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -43,11 +43,11 @@ const nextConfig = {
async headers() {
return [
{
- source: "/(.*)",
+ source: "/api/playlist/(.*)",
headers: [
{
key: "Access-Control-Allow-Origin",
- value: "https://*.amazonaws.com",
+ value: "**",
},
{
key: "Access-Control-Allow-Methods",
@@ -60,11 +60,11 @@ const nextConfig = {
],
},
{
- source: "/api/playlist/(.*)",
+ source: "/(.*)",
headers: [
{
key: "Access-Control-Allow-Origin",
- value: "**",
+ value: "https://*.amazonaws.com",
},
{
key: "Access-Control-Allow-Methods",