Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Change CORS allowed origin

Richie McIlroy913d28770649
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index a4bb34d20..5a0e11629 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -81,28 +81,7 @@ const nextConfig = {
headers: [
{
key: "Access-Control-Allow-Origin",
- value: "tauri://localhost",
- },
- {
- key: "Access-Control-Allow-Methods",
- value: "GET, POST, PUT, DELETE, OPTIONS",
- },
- {
- key: "Access-Control-Allow-Headers",
- value: "Content-Type, Authorization",
- },
- {
- key: "Access-Control-Allow-Credentials",
- value: "true",
- },
- ],
- },
- {
- source: "/api/desktop/(.*)",
- headers: [
- {
- key: "Access-Control-Allow-Origin",
- value: "http://localhost:3001",
+ value: "*",
},
{
key: "Access-Control-Allow-Methods",