This repository was archived by the owner on Aug 12, 2020. It is now read-only.
start a quick intro guide to making ipfs webapps#25
Open
whyrusleeping wants to merge 1 commit intomasterfrom
Open
start a quick intro guide to making ipfs webapps#25whyrusleeping wants to merge 1 commit intomasterfrom
whyrusleeping wants to merge 1 commit intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
API_ORIGINis deprecated. use the config var (seeipfs daemon).- we should not encourage
*. it's a pretty big security hole. i can give you a single link that will delete all your pin set, gc, and then download a bunch of crap. So instead encourage to say:
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin \
'["http://localhost:<port>", "http://127.0.0.1:<port>", "http://127.0.0.1:$desired-port"]'
<port> is for the local api port. and $desired-port is for user's port.
Contributor
|
Super good! 👍 i think we should cover also using the api. maybe the guide could actually guide the user through doing something very simple-- maybe building the peer globe or something. or a textarea "paste to ipfs" or something. |
Contributor
There was a problem hiding this comment.
"provides an HTTP API for interacting with the daemon"
Contributor
|
Can you give a fuller example with a mock webapp? Something like a tutorial, here? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This definitely needs some feedback, but i think that we need a guide like this to encourage people to build more awesome things on ipfs.