Skip to content

Commit dcf28ce

Browse files
committed
docs: remove CORS credential header
1 parent 71e8688 commit dcf28ce

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Run the **[cors-config.sh](./cors-config.sh)** script with:
7272
```console
7373
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:3000", "https://webui.ipfs.io"]'
7474
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
75-
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
7675
```
7776

7877
#### Reverting

cors-config.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ set -e
77

88
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[$ALLOW_ORIGINS]"
99
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
10-
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
1110

1211
echo "IPFS API CORS headers configured for $ALLOW_ORIGINS"
1312
echo "Please restart your IPFS daemon"

src/welcome/WelcomePage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ const ConnectionStatus = ({ t, connected, sameOrigin }) => {
7070
<div className='bg-black-70 snow pa2 f7 nowrap overflow-x-scroll'>
7171
<code className='db'>$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["{ window.location.origin }", "https://webui.ipfs.io"]'</code>
7272
<code className='db'>$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'</code>
73-
<code className='db'>$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'</code>
7473
</div>
7574
</div> }
7675
<Trans i18nKey='notConnected.paragraph3'>

0 commit comments

Comments
 (0)