Skip to content

Commit

Permalink
ADO-2894102 Good Move allowed origins for EMC (#62)
Browse files Browse the repository at this point in the history
* ADO-2894102 Allowed origins were updated to support Good Move and fix EMC portal issues

* Trying to commit something to open GitHub page.

* Trying to revert something to open GitHub page.

* Trying to commit something to open GitHub page (2nd attempt).

* Trying to revert something to open GitHub page (2nd attempt).

* Reverting changes in tsconfig.json
  • Loading branch information
Blackbaud-OmarMarquez authored Apr 26, 2024
1 parent bd8628b commit 3cff58c
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.2.2 (2024-04-25)
- Updated `allowedOrigins` to support Good Move and fix EMC portal issues

# 1.2.1 (2024-04-01)
- Package updates

Expand Down
4 changes: 2 additions & 2 deletions 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.2.1",
"version": "1.2.2",
"description": "SKY add-in client",
"main": "dist/bundles/sky-addin-client.umd.js",
"module": "index.ts",
Expand Down
64 changes: 63 additions & 1 deletion src/addin/addin-client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,69 @@ 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://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',
].forEach((url) => {
it(`should not warn because ${url} is allowed.`,
() => {
Expand Down
65 changes: 64 additions & 1 deletion src/addin/addin-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,70 @@ const allowedOrigins = [
/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,
/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,
/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,
/^https\:\/\/[\w\-\.]+\.myschooltraining\.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$/,
];

/**
Expand Down

0 comments on commit 3cff58c

Please sign in to comment.