mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
10 lines
439 B
Bash
Executable File
10 lines
439 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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
|
|
|
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
|
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
|
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
|