diff --git a/package.json b/package.json index f753565..53e2e37 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "deploy": "wrangler deploy", - "start": "wrangler dev" + "start": "wrangler dev --local-protocol https" }, "devDependencies": { "@cloudflare/workers-types": "^4.20240423.0", diff --git a/src/index.ts b/src/index.ts index 09f5cae..0aa9af2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,10 +26,12 @@ const allowedOrigins: Array = [ "https://cultpodcasts.com", "http://localhost:4200", "https://local.cultpodcasts.com:4200", - "https://localhost:4200" + "https://local.cultpodcasts.com:8788", + "https://localhost:4200", + "https://localhost:8790" ]; -const stagingHostSuffix= ".website-83e.pages.dev"; +const stagingHostSuffix = ".website-83e.pages.dev"; function getOrigin(origin: string | null | undefined) { if (origin == null || (allowedOrigins.indexOf(origin.toLowerCase()) == -1 && !origin.endsWith(stagingHostSuffix))) {