From 7e4d5b8eeeebdf7f804b7488d4be27655618c4f7 Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Wed, 1 Jan 2020 17:53:21 +0100 Subject: [PATCH] Improve CORS info --- CHANGELOG.md | 1 + src/Static/About/About.md | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6ac3cb7..10d81f13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Adds ability to download a playlist as a zip file - Fixes dark styles for add-to-playlist overlay +- Improves CORS information a little bit - No longer scrolls track list to the top when moving things in a playlist or when processing tracks - Switches key bindings for arrow up and down diff --git a/src/Static/About/About.md b/src/Static/About/About.md index 24f18122..1325eed2 100644 --- a/src/Static/About/About.md +++ b/src/Static/About/About.md @@ -88,7 +88,7 @@ You can find the CORS configuration editor under the "Permissions" tab, on the S Add the domain of the app, with the protocol, to the __list of allowed origins__. ```shell -btfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://diffuse.sh"]' +btfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://diffuse.sh", "http://127.0.0.1:8080", "http://127.0.0.1:44999"]' ``` You can also make this change in the Web UI, you'll find it under "Settings → BTFS Config". @@ -98,7 +98,9 @@ You can also make this change in the Web UI, you'll find it under "Settings → "API": { "HTTPHeaders": { "Access-Control-Allow-Origin": [ - "https://diffuse.sh" + "https://diffuse.sh", + "http://127.0.0.1:8080", + "http://127.0.0.1:44999" ] } } @@ -124,7 +126,7 @@ _Not necessary._ Add the domain of the app, with the protocol, to the __list of allowed origins__. ```shell -ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://diffuse.sh"]' +ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://diffuse.sh", "http://127.0.0.1:8080", "http://127.0.0.1:44999"]' ``` You can also make this change in the Web UI, you'll find it under "Settings → IPFS Config". @@ -134,7 +136,9 @@ You can also make this change in the Web UI, you'll find it under "Settings → "API": { "HTTPHeaders": { "Access-Control-Allow-Origin": [ - "https://diffuse.sh" + "https://diffuse.sh", + "http://127.0.0.1:8080", + "http://127.0.0.1:44999" ] } } @@ -167,7 +171,9 @@ Add the domain of the app, with the protocol, to the __list of allowed origins__ "API": { "HTTPHeaders": { "Access-Control-Allow-Origin": [ - "https://diffuse.sh" + "https://diffuse.sh", + "http://127.0.0.1:8080", + "http://127.0.0.1:44999" ] } } @@ -197,6 +203,7 @@ cors: - PROPFIND allowed_hosts: - https://diffuse.sh + - http://127.0.0.1:44999 exposed_headers: - Content-Length - Content-Type -- 2.51.2