Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1508 from navikt/CorsUatHoT
Browse files Browse the repository at this point in the history
Add UAT HoT Cors whitelist
  • Loading branch information
terjeofnorway authored Nov 20, 2023
2 parents cfa1524 + ae1c7a1 commit 68253ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const corsWhitelist = [
'navdialog.cs106.force.com',
'navdialog.cs108.force.com',
'navdialog.cs162.force.com',
'navdialog--uathot.sandbox.my.site.com',
];

const isAllowedDomain = (origin?: string) => origin && corsWhitelist.some((domain) => origin.endsWith(domain));
Expand Down

0 comments on commit 68253ee

Please sign in to comment.