File tree 3 files changed +0
-3
lines changed
3 files changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ Or do it manually:
73
73
``` sh
74
74
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin ' ["http://localhost:3000", "https://share.ipfs.io"]'
75
75
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods ' ["PUT", "GET", "POST"]'
76
- > ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials ' ["true"]'
77
76
```
78
77
79
78
To reset the config to its default state run:
Original file line number Diff line number Diff line change 7
7
8
8
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin " [$ALLOW_ORIGINS ]"
9
9
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods ' ["PUT", "GET", "POST"]'
10
- ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials ' ["true"]'
11
10
12
11
echo " IPFS API CORS headers configured for $ALLOW_ORIGINS "
13
12
echo " Please restart your IPFS daemon"
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ export const RawBoxNotAvailable = ({ t }) => (
52
52
< div className = 'pa3 bg-black-80 bt bw4 br2 gray-muted f7 nowrap overflow-x-scroll' >
53
53
< code className = 'db' > $ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["{ window . location . origin } ", "https://share.ipfs.io"]'</ code >
54
54
< code className = 'db' > $ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'</ code >
55
- < code className = 'db' > $ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'</ code >
56
55
</ div >
57
56
< p className = 'mv3 navy f6 lh-copy' > { t ( 'box.runDaemon' ) } </ p >
58
57
< div className = 'pa3 bg-black-80 bt bw4 br2 gray-muted f7 nowrap overflow-x-scroll' >
You can’t perform that action at this time.
0 commit comments