Skip to content

Commit

Permalink
docs: remove CORS credential header (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored and olizilla committed Nov 19, 2018
1 parent 71e8688 commit f5567fb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ Run the **[cors-config.sh](./cors-config.sh)** script with:
```console
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:3000", "https://webui.ipfs.io"]'
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
```

#### Reverting
Expand Down
1 change: 0 additions & 1 deletion cors-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set -e

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

echo "IPFS API CORS headers configured for $ALLOW_ORIGINS"
echo "Please restart your IPFS daemon"
1 change: 0 additions & 1 deletion src/welcome/WelcomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const ConnectionStatus = ({ t, connected, sameOrigin }) => {
<div className='bg-black-70 snow pa2 f7 nowrap overflow-x-scroll'>
<code className='db'>$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["{ window.location.origin }", "https://webui.ipfs.io"]'</code>
<code className='db'>$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'</code>
<code className='db'>$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'</code>
</div>
</div> }
<Trans i18nKey='notConnected.paragraph3'>
Expand Down

0 comments on commit f5567fb

Please sign in to comment.