Skip to content

Open source CapCut alternative.

TypeScript

feat(site): allow the donkeycut.com origin on the Cut engine [rebuild]

David Led60523d6b87d
diff --git a/site/src/cut/server/cors.ts b/site/src/cut/server/cors.ts
index 946afacc..58dd6908 100644
--- a/site/src/cut/server/cors.ts
+++ b/site/src/cut/server/cors.ts
@@ -1,10 +1,13 @@
/**
* One CORS policy for Cut's engine, shared by the Next dev server (src/proxy.ts)
* and the packaged engine's http server (src/cut/engine/serve.ts). The hosted
- * Cut page is the only browser origin allowed to reach the engine cross-origin;
- * every other origin is refused before any handler runs.
+ * Cut pages are the only browser origins allowed to reach the engine
+ * cross-origin; every other origin is refused before any handler runs.
*/
-export const CUT_CLIENT_ORIGINS = new Set(["https://cut.donkeyuse.com"]);
+export const CUT_CLIENT_ORIGINS = new Set([
+ "https://donkeycut.com",
+ "https://cut.donkeyuse.com",
+]);
/** The echo-back origin for an allowed caller, else null. */
export function allowedOrigin(origin: string): string | null {