Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

add tauri localhost to cors (#1343)

Peter Chinman1c3f8aecc97a
diff --git a/infra/packages/resources/src/resources/cors.ts b/infra/packages/resources/src/resources/cors.ts
index 4ecc1a7ffd..7391c0bf72 100644
--- a/infra/packages/resources/src/resources/cors.ts
+++ b/infra/packages/resources/src/resources/cors.ts
@@ -16,4 +16,5 @@ export const ALLOWED_ORIGINS = [
'https://website-staging.macro.com',
'https://website-prod.macro.com',
'https://apollo-testing.macro.com',
+ 'tauri://localhost',
];
diff --git a/rust/cloud-storage/macro_cors/src/lib.rs b/rust/cloud-storage/macro_cors/src/lib.rs
index 6e865cd6e5..0ac7f4a40a 100644
--- a/rust/cloud-storage/macro_cors/src/lib.rs
+++ b/rust/cloud-storage/macro_cors/src/lib.rs
@@ -6,7 +6,7 @@ use axum::http::{
};
use tower_http::cors::{AllowOrigin, CorsLayer};
-static ALLOWED_ORIGINS: [&str; 10] = [
+static ALLOWED_ORIGINS: [&str; 11] = [
"http://localhost:5173",
"https://dashboarddev.macro.com",
"https://dashboard.macro.com",
@@ -16,6 +16,7 @@ static ALLOWED_ORIGINS: [&str; 10] = [
"https://www.macro.com",
"https://macro.com",
"http://tauri.localhost",
+ "tauri://localhost",
"https://apollo-testing.macro.com",
];