mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
script to set CORS settings on your ipfs daemon
This commit is contained in:
parent
073996c9c5
commit
ffac0c8f65
5
ipfs_daemon_set_cors.sh
Executable file
5
ipfs_daemon_set_cors.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
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"]'
|
Loading…
Reference in New Issue
Block a user