You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently everything in the Javascript (such as the static_key, for example) is hard-coded, and will likely trip up anyone new to the project. Instead, the server should expose a new /config endpoint that returns a JSON object, consumable by the browser Javascript.
To start, it should contain the static key. Additionally, there should be an option to disable uploading from the browser side (i.e. by not sending a static key at all, configurable from the server). This means it can only be uploaded to by external clients, e.g. ShareX or upclient, if they know the static key.
The text was updated successfully, but these errors were encountered:
k3d3
changed the title
Browser: grab config options dynamically from the server
Javascript: grab config options dynamically from the server
Jun 12, 2015
There are a number of disadvantages to this and advantages. I will discuss
it verbally with you some time to decide what works best.
On Jun 12, 2015 12:24 AM, "Keith Morrow" notifications@github.com wrote:
Currently everything in the Javascript (such as the static_key, for
example) is hard-coded, and will likely trip up anyone new to the project.
Instead, the server should expose a new /config endpoint that returns a
JSON object, consumable by the browser Javascript.
To start, it should contain the static key. Additionally, there should be
an option to disable uploading from the browser side (i.e. by not sending a
static key at all, configurable from the server). This means it can only be
uploaded to by external clients, e.g. ShareX or upclient, if they know the
static key.
—
Reply to this email directly or view it on GitHub #3.
Currently everything in the Javascript (such as the static_key, for example) is hard-coded, and will likely trip up anyone new to the project. Instead, the server should expose a new
/config
endpoint that returns a JSON object, consumable by the browser Javascript.To start, it should contain the static key. Additionally, there should be an option to disable uploading from the browser side (i.e. by not sending a static key at all, configurable from the server). This means it can only be uploaded to by external clients, e.g. ShareX or upclient, if they know the static key.
The text was updated successfully, but these errors were encountered: