Skip to content

Commit ebef53e

Browse files
chore: sync worker CORS from community configs [skip ci]
1 parent ee6b793 commit ebef53e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

workers/osa-worker/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,14 @@ function isAllowedOrigin(origin) {
157157
// Allowed origins for OSA
158158
const allowedPatterns = [
159159
'https://osc.earth',
160+
'https://*.mne.tools',
160161
'https://bids-specification.readthedocs.io',
161162
'https://bids.neuroimaging.io',
162163
'https://eeglab.org',
163164
'https://fieldtriptoolbox.org',
164165
'https://hedtags.org',
165166
'https://hedtools.org',
167+
'https://mne.tools',
166168
'https://nemar.org',
167169
'https://sccn.github.io',
168170
'https://www.eeglab.org',
@@ -181,6 +183,7 @@ function isAllowedOrigin(origin) {
181183
if (origin.startsWith('https://') && origin.endsWith('.github.io')) return true;
182184
if (origin.startsWith('https://') && origin.endsWith('.hedtags.org')) return true;
183185
if (origin.startsWith('https://') && origin.endsWith('.hedtools.org')) return true;
186+
if (origin.startsWith('https://') && origin.endsWith('.mne.tools')) return true;
184187
if (origin.startsWith('https://') && origin.endsWith('.nemar.org')) return true;
185188
if (origin.startsWith('https://') && origin.endsWith('.neuroimaging.io')) return true;
186189
if (origin.startsWith('https://') && origin.endsWith('.readthedocs.io')) return true;

0 commit comments

Comments
 (0)