Skip to content

Commit

Permalink
Removed Good Move EMC portal origins (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-tims authored Nov 13, 2024
1 parent b4055ca commit 7261113
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 132 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.6.0 (2024-11-12)
- Removed Good Move EMC portal origins from the `allowedOrigins` array.

# 1.5.1 (2024-10-24)
- Removed unused `helpKey` property from the `AddinBoxConfig`

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blackbaud/sky-addin-client",
"version": "1.5.1",
"version": "1.6.0",
"description": "SKY add-in client",
"main": "dist/bundles/sky-addin-client.umd.js",
"module": "index.ts",
Expand Down
70 changes: 4 additions & 66 deletions src/addin/addin-client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('AddinClient ', () => {
});
client.destroy();

expect((<any>client).allowedOrigins.length).toBe(81);
expect((<any>client).allowedOrigins.length).toBe(18);
});

it ('should initialize AddinClient with additional allowedOrigins', () => {
Expand All @@ -97,7 +97,7 @@ describe('AddinClient ', () => {
});
client.destroy();

expect((<any>client).allowedOrigins.length).toBe(84);
expect((<any>client).allowedOrigins.length).toBe(21);
});

it ('additional allowedOrigins - removing duplicates', () => {
Expand All @@ -116,7 +116,7 @@ describe('AddinClient ', () => {
});
client.destroy();

expect((<any>client).allowedOrigins.length).toBe(82);
expect((<any>client).allowedOrigins.length).toBe(19);
});

});
Expand Down Expand Up @@ -1886,69 +1886,7 @@ describe('AddinClient ', () => {
'https://my.test.myschooltraining.com',
'https://test_site.myschooltraining.com',
'https://test-site.myschooltraining.com',
'https://view-my.test_site.myschooltraining.com',
'https://give.blackbaudwp.com',
'https://participate.carrytheload.org',
'https://secure.ummsfoundation.org',
'http://participate.lcrf.org',
'https://secure.go2.org',
'https://give.nationwidechildrens.org',
'https://support.lupus.org',
'https://secure.operationsmile.ca',
'https://secure2.convio.net',
'https://secure.ontariospca.ca',
'https://events.brighamandwomens.org',
'https://secure.northernlighthealth.org',
'http://hjcnm.convio.net',
'https://secure.alpha1.org',
'https://fundraising.pscpartners.org',
'https://hope.mercyforanimals.org',
'https://secure.braintumor.org',
'https://support.cancer.ca',
'https://secure.phoenixchildrensfoundation.org',
'https://secure.ocmc.org',
'https://support.stlouischildrens.org',
'https://give.choa.org',
'https://secure.acsevents.org',
'https://secure.operationsmile.org',
'https://give.mdmercy.com',
'https://foundation.cookchildrens.org',
'https://secure1.chla.org',
'https://secure.nleomf.org',
'https://secure.pwatoronto.org',
'https://support.jfsla.org',
'https://give.roswellpark.org',
'https://secure.alsagoldenwest.org',
'https://events.cancercarefoundation.ca',
'https://secure.alsnc.org',
'https://secure.alsanm.org',
'https://secure.waysidewaifs.org',
'https://www.bladdercancercanada.org',
'https://danafarber.jimmyfund.org',
'https://secure.info-komen.org',
'https://giving.mountsinai.org',
'https://www.walkforpd.ca',
'https://secure.alsoregon.org',
'https://www.feedhopenow.org',
'https://secure.trilliumgiving.ca',
'https://www.swimacrossamerica.org',
'https://ovariancanada.org',
'https://secure.alsunitedchicago.org',
'https://secure.fredhutch.org',
'https://www.hss.edu',
'https://donate.nyghfoundation.ca',
'https://secure.natureconservancy.ca',
'https://secure.llscanada.org',
'https://secure.als-ny.org',
'https://support.zerocancer.org',
'https://secure.alsmidatlantic.org',
'https://support.habitat.ca',
'https://support.stamfordhospitalfoundation.org',
'https://secure.alsohio.org',
'https://support.cancercarefdn.mb.ca',
'https://support.baycrestfoundation.org',
'https://give.southlake.ca',
'https://donate.parkinson.ca',
'https://view-my.test_site.myschooltraining.com'
].forEach((url) => {
it(`should not warn because ${url} is allowed.`,
() => {
Expand Down
65 changes: 1 addition & 64 deletions src/addin/addin-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,70 +36,7 @@ const allowedOrigins = [
/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,
/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,
/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,
/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/,
/^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/,
/^https\:\/\/[\w\-\.]+\.carrytheload\.org$/,
/^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/,
/^http\:\/\/[\w\-\.]+\.lcrf\.org$/,
/^https\:\/\/[\w\-\.]+\.go2\.org$/,
/^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/,
/^https\:\/\/[\w\-\.]+\.lupus\.org$/,
/^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/,
/^https\:\/\/[\w\-\.]+\.convio\.net$/,
/^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/,
/^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/,
/^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/,
/^http\:\/\/[\w\-\.]+\.convio\.net$/,
/^https\:\/\/[\w\-\.]+\.alpha1\.org$/,
/^https\:\/\/[\w\-\.]+\.pscpartners\.org$/,
/^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/,
/^https\:\/\/[\w\-\.]+\.braintumor\.org$/,
/^https\:\/\/[\w\-\.]+\.cancer\.ca$/,
/^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/,
/^https\:\/\/[\w\-\.]+\.ocmc\.org$/,
/^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/,
/^https\:\/\/[\w\-\.]+\.choa\.org$/,
/^https\:\/\/[\w\-\.]+\.acsevents\.org$/,
/^https\:\/\/[\w\-\.]+\.operationsmile\.org$/,
/^https\:\/\/[\w\-\.]+\.mdmercy\.com$/,
/^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/,
/^https\:\/\/[\w\-\.]+\.chla\.org$/,
/^https\:\/\/[\w\-\.]+\.nleomf\.org$/,
/^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/,
/^https\:\/\/[\w\-\.]+\.jfsla\.org$/,
/^https\:\/\/[\w\-\.]+\.roswellpark\.org$/,
/^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/,
/^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/,
/^https\:\/\/[\w\-\.]+\.alsnc\.org$/,
/^https\:\/\/[\w\-\.]+\.alsanm\.org$/,
/^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/,
/^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/,
/^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/,
/^https\:\/\/[\w\-\.]+\.info\-komen\.org$/,
/^https\:\/\/[\w\-\.]+\.mountsinai\.org$/,
/^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/,
/^https\:\/\/[\w\-\.]+\.alsoregon\.org$/,
/^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/,
/^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/,
/^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/,
/^https\:\/\/ovariancanada\.org$/,
/^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/,
/^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/,
/^https\:\/\/[\w\-\.]+\.fredhutch\.org$/,
/^https\:\/\/[\w\-\.]+\.hss\.edu$/,
/^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/,
/^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/,
/^https\:\/\/[\w\-\.]+\.llscanada\.org$/,
/^https\:\/\/[\w\-\.]+\.als\-ny\.org$/,
/^https\:\/\/[\w\-\.]+\.zerocancer\.org$/,
/^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/,
/^https\:\/\/[\w\-\.]+\.habitat\.ca$/,
/^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/,
/^https\:\/\/[\w\-\.]+\.alsohio\.org$/,
/^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/,
/^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/,
/^https\:\/\/[\w\-\.]+\.southlake\.ca$/,
/^https\:\/\/[\w\-\.]+\.parkinson\.ca$/,
/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/
];

/**
Expand Down

0 comments on commit 7261113

Please sign in to comment.