Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #295 from hubert-deriv/HOTIFX_fixing_urls_2
Browse files Browse the repository at this point in the history
hubert / Fixing whitelist urls
  • Loading branch information
lipika-deriv authored May 22, 2023
2 parents 7ee03e4 + 230ead6 commit 3fa5dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/components/global/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ export default function Header() {
useEffect(() => {
// remove branding on hosts that are not Deriv
const host = window.location.host;
let is_deriv_host = false;
domains.forEach(domain => {
const host_exists = host.indexOf(domain) === 0;
if (host_exists) {
is_deriv_host = host_exists;
}
});
const is_deriv_host = domains.includes(host);

if (!is_deriv_host) {
send('TOGGLE_BRANDING_OFF');
Expand Down
2 changes: 1 addition & 1 deletion src/data-stores/domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const domains = [
'api.deriv.be',
'api.deriv.com',
'staging.deriv.be',
'localhost',
'localhost:3000',
'deriv-com-git-fork',
'deriv-developers-portal-git-fork',
'staging-api.deriv.com',
Expand Down

1 comment on commit 3fa5dc0

@vercel
Copy link

@vercel vercel bot commented on 3fa5dc0 May 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-developers-portal – ./

deriv-developers-portal-git-master.binary.sx
deriv-developers-portal.binary.sx

Please sign in to comment.