-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PROTOTYPE] Local HTTP-served static files, vs. file: protocol #451
Comments
Comment by jasonsanjose A few notes on the security issues we ran into:
|
Comment by peterflynn Initial thoughts.... There's some risk in making Node a more critical part of Brackets, specifically:
I wonder if there are other alternatives that might avoid some of those risks, e.g.:
|
Comment by peterflynn Added some more notes on alternatives to my list in the previous comment |
Issue by jasonsanjose
Thursday Oct 16, 2014 at 17:21 GMT
Originally opened as adobe#475
Proof of concept to serve brackets core www files over a static file HTTP node server.
After running into various issues with the security model (or lack of) in CEF combined with the issues when using the
file:
protocol, I thought it would be fun to see what it would take to serve Brackets over HTTP within brackets-shell using the built-in node server.Overall, this is not required for any current/planned features. However, I think it would help Brackets get closer to moving into the browser if we could transition away from
file:
first within brackets-shell.Changes:
appshell/node-core/Server.js
NodeConnection
to read the/api
JSON (i.e. http://localhost:[node_port]/api)appshell/node-core/thirdparty/conenct
static
middleware to serve filesThere's still more to do on the www side. We wouldn't need to shift to a node-based FS since we're in brackets-shell and can still access
brackets.fs
. However, a lot of www code (particularly extension loading) assumes afile:
URL. Here's the console log on init:jasonsanjose included the following code: https://github.com/adobe/brackets-shell/pull/475/commits
The text was updated successfully, but these errors were encountered: