From aabcd9690a755601ea2f8b2cf08dbe74197c653e Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 3 Jun 2020 16:25:06 -0400 Subject: [PATCH] bump lbry-sdk to 0.75.0 --- CHANGELOG.md | 2 ++ electron/index.js | 8 ++++++++ package.json | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64f8dc67c..c2b32f083 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added +- Can now purchase LBC inside of the app ([#4294](https://github.com/lbryio/lbry-desktop/pull/4294)) - Allow video sharing with start timestamp _community pr!_ ([#4142](https://github.com/lbryio/lbry-desktop/pull/4142)) - Expose reflector status for publishes ([#4148](https://github.com/lbryio/lbry-desktop/pull/4148)) - More tooltip help texts _community pr!_ ([#4185](https://github.com/lbryio/lbry-desktop/pull/4185)) @@ -18,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed +- Updated lbry-sdk to [0.75.0](https://github.com/lbryio/lbry-sdk/releases/tag/v0.75.0) - Use "grab" cursor on floating player to make it easier to tell you can drag it _community pr!_ ([#4201](https://github.com/lbryio/lbry-desktop/pull/4201)) - Confirm age before viewing mature content on web ([#4233](https://github.com/lbryio/lbry-desktop/pull/4233)) - Pause thumbnail gifs until hover ([#4256](https://github.com/lbryio/lbry-desktop/pull/4256)) diff --git a/electron/index.js b/electron/index.js index 01e97d61e..6f39e35c5 100644 --- a/electron/index.js +++ b/electron/index.js @@ -153,6 +153,14 @@ if (!gotSingleInstanceLock) { callback({ cancel: false }); } }); + + // If an "Origin" header is passed, the SDK will check that it is set to allow that origin in the daemon_settings.yml + // By default, electron sends http://localhost:{port} as the origin for POST requests + // https://github.com/electron/electron/issues/7931#issuecomment-361759277 + session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => { + delete details.requestHeaders['Origin']; + callback({ cancel: false, requestHeaders: details.requestHeaders }); + }); }); } diff --git a/package.json b/package.json index a8489622b..0e336aff0 100644 --- a/package.json +++ b/package.json @@ -213,7 +213,7 @@ "yarn": "^1.3" }, "lbrySettings": { - "lbrynetDaemonVersion": "0.74.0", + "lbrynetDaemonVersion": "0.75.0", "lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip", "lbrynetDaemonDir": "static/daemon", "lbrynetDaemonFileName": "lbrynet"