1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-25 14:54:19 +01:00

documented the cors script a bit

This commit is contained in:
Enrico Fasoli 2015-11-15 21:35:50 +01:00
parent 732c25cf54
commit 90dbd64265

View File

@ -1,5 +1,8 @@
#!/bin/bash
# This will make sure your ipfs node works with the app.
# Note that it's not safe to do if your node is accessible from the internet or your LAN. Be careful!
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"]'