···8888Add the domain of the app, with the protocol, to the __list of allowed origins__.
89899090```shell
9191-btfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://diffuse.sh", "http://127.0.0.1:8080", "http://127.0.0.1:44999"]'
9191+btfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://diffuse.sh", "http://diffuse.sh.ipns.localhost:8080", "http://127.0.0.1:44999"]'
9292```
93939494You can also make this change in the Web UI, you'll find it under "Settings → BTFS Config".
95959696-```json
9696+```javascript
9797{
9898 "API": {
9999 "HTTPHeaders": {
100100 "Access-Control-Allow-Origin": [
101101- "https://diffuse.sh",
102102- "http://127.0.0.1:8080",
103103- "http://127.0.0.1:44999"
101101+ "https://diffuse.sh", // 🎵 Default
102102+ "http://diffuse.sh.ipns.localhost:8080", // IPNS
103103+ "http://127.0.0.1:44999" // Electron app
104104 ]
105105 }
106106 }
···126126Add the domain of the app, with the protocol, to the __list of allowed origins__.
127127128128```shell
129129-ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://diffuse.sh", "http://127.0.0.1:8080", "http://127.0.0.1:44999"]'
129129+ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://diffuse.sh", "http://diffuse.sh.ipns.localhost:8080", "http://127.0.0.1:44999"]'
130130```
131131132132You can also make this change in the Web UI, you'll find it under "Settings → IPFS Config".
133133134134-```json
134134+```javascript
135135{
136136 "API": {
137137 "HTTPHeaders": {
138138 "Access-Control-Allow-Origin": [
139139- "https://diffuse.sh",
140140- "http://127.0.0.1:8080",
141141- "http://127.0.0.1:44999"
139139+ "https://diffuse.sh", // 🎵 Default
140140+ "http://diffuse.sh.ipns.localhost:8080", // IPNS through IPFS Companion
141141+ "http://127.0.0.1:44999" // Electron app
142142 ]
143143 }
144144 }