Skip to content

Commit

Permalink
fix: Prepend https to team.domain
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jan 16, 2024
1 parent b11c160 commit 67e5157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/application/utils/generateCORSAllowList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as awsx from "@pulumi/awsx";
import { CustomDomains } from "../../common/teams";

export const generateCORSAllowList = (customDomains: CustomDomains, domain: string): awsx.ecs.KeyValuePair => {
const customDomainURLs = customDomains.map(team => team.domain);
const customDomainURLs = customDomains.map(team => `https://${team.domain}`);
const editorURL = `https://${domain}`;
const corsAllowList = [...customDomainURLs, editorURL];

Expand Down

0 comments on commit 67e5157

Please sign in to comment.