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:
+1
-1
@@ -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"],
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user