Allow the ngrok browser-warning skip header in CORS so a WebView can reach the local tunnel without failing preflight.

This commit is contained in:
Jose Olarte III
2026-09-03 21:12:59 +08:00
parent c9df679ac2
commit d0a3951689
+1 -1
View File
@@ -14,7 +14,7 @@ app.use(
cors({
origin: true,
methods: ["GET", "POST", "PUT", "OPTIONS"],
allowedHeaders: ["Content-Type", "Authorization"],
allowedHeaders: ["Content-Type", "Authorization", "ngrok-skip-browser-warning"],
}),
);