Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add `origin` option for torrent.createServer() #1096

Merged
merged 1 commit into from Jun 25, 2017
Merged

Conversation

@feross
Copy link
Member

feross commented Apr 8, 2017

When the origin option is specified, only requests from the given
origin will be allowed.

This is useful to add additional security to any app that is starting a
WebTorrent server but doesn't want it to be exposed to the entire Web.

When the origin option is specified, only requests from the given
origin will be allowed.

This is useful to add additional security to any app that is starting a
WebTorrent server but doesn't want it to be exposed to the entire Web.
@yciabaud

This comment has been minimized.

Copy link
Contributor

yciabaud commented Apr 8, 2017

Nice addition, this will be useful!
@Thorbjorn needs something like this to ensure its torrents are consumed only on its platform.

Copy link
Member

DiegoRBaquero left a comment

Great feature. LGTM

@DiegoRBaquero DiegoRBaquero merged commit f980be0 into master Jun 25, 2017
5 checks passed
5 checks passed
Node Security No known vulnerabilities found
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@DiegoRBaquero DiegoRBaquero deleted the feross/cors branch Sep 28, 2017
@lock lock bot locked as resolved and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.