Skip to content

Commit 2802e2e

Browse files
committed
Fix CORS and update version
1 parent 311cd7f commit 2802e2e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.vscode/tasks/publish-pypi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ done
4444
twine upload ./dist/*
4545

4646
# Tag this commit
47-
git tag v0.2.7
47+
git tag v0.2.8
4848

49-
echo "Tagged as v0.2.7"
49+
echo "Tagged as v0.2.8"

jinjaroot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
projectName: neurosift
2-
pythonProjectVersion: 0.2.7
2+
pythonProjectVersion: 0.2.8
33
projectAuthor: Jeremy Magland
44
projectAuthorEmail: [email protected]
55
projectDescription: Simple utility to view local NWB files using Neurosift

python/neurosift/local-file-access-js/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ npm run start $NWB_DIR
2727
**Step 3: Open the neurosift web app in your browser and point to an nwb file**
2828

2929
```bash
30-
https://flatironinstitute.github.io/neurosift/?p=/nwb&url=http://localhost:61762/files/testing.nwb
30+
https://neurosift.app/?p=/nwb&url=http://localhost:61762/files/testing.nwb
3131
```
3232

3333
This will load the nwb file from `$NWB_DIR/testing.nwb`
@@ -44,4 +44,4 @@ PORT=12345 npm run start $NWB_DIR
4444

4545
This server will expose the contents of files in the directory you specify to anyone who can access the server. This does not include hidden files (those starting with "."). This is not a problem if you are running the server on your local machine and only accessing it from your local machine. However, if you are running the server on a machine that is accessible from the internet, you should take precautions to ensure that only authorized users can access the server, if you have sensitive files.
4646

47-
There is also a possibility that websites you visit could get read access to your files. However, the configuration will prevent this from happening unless the website is being served from the allowed domains (flatironinsitute.github.io and localhost:3000).
47+
There is also a possibility that websites you visit could get read access to your files. However, the configuration will prevent this from happening unless the website is being served from the allowed domains (neurosift.app and localhost:3000).

python/neurosift/local-file-access-js/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ if (!dir) {
88
}
99
console.info('Serving files in', dir)
1010

11-
// Allow CORS from flatironinstitute.github.io and localhost:3000
12-
const allowedOrigins = ['https://flatironinstitute.github.io', 'http://localhost:3000', 'http://localhost:4200']
11+
// Allow CORS from neurosift.app flatironinstitute.github.io and localhost:3000
12+
const allowedOrigins = ['https://neurosift.app', 'https://flatironinstitute.github.io', 'http://localhost:3000', 'http://localhost:4200']
1313
app.use((req, resp, next) => {
1414
const origin = req.get('origin')
1515
const allowedOrigin = allowedOrigins.includes(origin) ? origin : undefined

python/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file was automatically generated by jinjaroot. Do not edit directly.
22
[metadata]
33
name = neurosift
4-
version = 0.2.7
4+
version = 0.2.8
55
author = Jeremy Magland
66
author_email = [email protected]
77
description = Simple utility to view local NWB files using Neurosift

0 commit comments

Comments
 (0)