Skip to content

Commit

Permalink
Add local fqd
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpodcasts committed May 1, 2024
1 parent 9d42584 commit d31624c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export interface Env {

export default {
async fetch(request: Request, env: Env) {
const allowedOrigins: Array<string> = ["https://cultpodcasts.com".toLowerCase(), "http://localhost:4200".toLowerCase()];
const allowedOrigins: Array<string> = [
"https://cultpodcasts.com".toLowerCase(),
"http://localhost:4200".toLowerCase(),
"https://local.cultpodcasts.com:4200".toLowerCase()
];
let origin = request.headers.get("Origin");
if (origin == null || allowedOrigins.indexOf(origin.toLowerCase()) == -1) {
origin = allowedOrigins[0];
Expand Down

0 comments on commit d31624c

Please sign in to comment.