Skip to content

Commit

Permalink
Added dynatrace domains to CORS (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
ron-rookout committed Dec 4, 2023
1 parent 00cc8bc commit 77cc19f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "explorook",
"version": "1.15.10",
"version": "1.15.11",
"description": "Rookout's site addon to support local files and folders",
"main": "dist/index.js",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ const defaultOptions: StartOptions = {
};

const corsDomainWhitelist = [
/^https:\/\/.*\.rookout.com$/,
/^https:\/\/.*\.rookout-dev.com$/,
/^https:\/\/.*\.rookout\.com$/,
/^https:\/\/.*\.rookout-dev\.com$/,
/^https:\/\/.*\.dynatracelabs\.com$/,
/^https:\/\/.*\.dynatrace\.com$/,
"https://localhost:8080"
];

Expand Down

0 comments on commit 77cc19f

Please sign in to comment.