mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
updated cors istructions
This commit is contained in:
parent
2ebd4c8a89
commit
657a18513d
@ -2,7 +2,11 @@
|
||||
|
||||
# This will make sure your ipfs node works with the app.
|
||||
# NOTE: this change is PERMANENT until reversed!
|
||||
# See https://github.com/ipfs/js-ipfs-api#cors for a temporary solution instead
|
||||
|
||||
# If you want a temporary solution, try running your daemon like this:
|
||||
# API_ORIGIN="localhost:8080" ipfs daemon
|
||||
# replace localhost:8080 with whatever domain:port you're connecting from :)
|
||||
# Also see https://github.com/ipfs/js-ipfs-api#cors
|
||||
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
|
||||
|
Loading…
Reference in New Issue
Block a user