@chosengeneration/light-code 0.68.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +12 -6
- package/dist/server.js +5 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -69748,7 +69748,11 @@ function securityHeaders() {
|
|
|
69748
69748
|
* `'none'` unless somebody named an origin. A list here is a deliberate act by an operator
|
|
69749
69749
|
* who wants this page inside another — a lab, a dashboard — and it names exactly which.
|
|
69750
69750
|
*/
|
|
69751
|
-
|
|
69751
|
+
/*
|
|
69752
|
+
* `'self'` always, plus whatever was declared. Same-origin framing is what a proxy serving
|
|
69753
|
+
* this page under somebody's own host looks like, and refusing it protected nothing.
|
|
69754
|
+
*/
|
|
69755
|
+
`frame-ancestors 'self'${frameAncestors.length === 0 ? "" : ` ${frameAncestors.join(" ")}`}`,
|
|
69752
69756
|
"base-uri 'none'",
|
|
69753
69757
|
"form-action 'none'"
|
|
69754
69758
|
].join("; "),
|
|
@@ -71180,7 +71184,7 @@ function respondJson(response, status, body) {
|
|
|
71180
71184
|
}
|
|
71181
71185
|
|
|
71182
71186
|
// src/cli.ts
|
|
71183
|
-
var VERSION = true ? "0.
|
|
71187
|
+
var VERSION = true ? "0.69.0" : "unknown (not a packaged build)";
|
|
71184
71188
|
var compat = installNodeCompat();
|
|
71185
71189
|
function lastMeaningfulLine(problem) {
|
|
71186
71190
|
const lines = problem.split(String.fromCharCode(10)).map((line) => line.trim()).filter((line) => line.length > 0 && !line.endsWith(":"));
|
|
@@ -71565,10 +71569,12 @@ Usage: light-code [options]
|
|
|
71565
71569
|
Under JupyterHub give only the hub's base URL \u2014 the
|
|
71566
71570
|
/user/<you>/proxy/<port>/ part is worked out, including the
|
|
71567
71571
|
port, which you cannot know before it starts.
|
|
71568
|
-
--allow-frame-ancestor <o>
|
|
71569
|
-
|
|
71570
|
-
|
|
71571
|
-
|
|
71572
|
+
--allow-frame-ancestor <o> A FURTHER origin allowed to embed this page in a
|
|
71573
|
+
frame. The page's own origin is always allowed, so a proxy
|
|
71574
|
+
serving it under your host - JupyterLab, say - can frame it
|
|
71575
|
+
with no flag at all. Name one here only to embed it from a
|
|
71576
|
+
different origin: framing is how clickjacking reaches an
|
|
71577
|
+
approval dialog, so those are named rather than guessed.
|
|
71572
71578
|
--allow-host <h> An extra name to answer to, e.g. a reverse proxy or a
|
|
71573
71579
|
container alias (repeatable)
|
|
71574
71580
|
--allow-origin <o> An extra origin allowed to call it, e.g. an app embedding
|
package/dist/server.js
CHANGED
|
@@ -69188,7 +69188,11 @@ function securityHeaders() {
|
|
|
69188
69188
|
* `'none'` unless somebody named an origin. A list here is a deliberate act by an operator
|
|
69189
69189
|
* who wants this page inside another — a lab, a dashboard — and it names exactly which.
|
|
69190
69190
|
*/
|
|
69191
|
-
|
|
69191
|
+
/*
|
|
69192
|
+
* `'self'` always, plus whatever was declared. Same-origin framing is what a proxy serving
|
|
69193
|
+
* this page under somebody's own host looks like, and refusing it protected nothing.
|
|
69194
|
+
*/
|
|
69195
|
+
`frame-ancestors 'self'${frameAncestors.length === 0 ? "" : ` ${frameAncestors.join(" ")}`}`,
|
|
69192
69196
|
"base-uri 'none'",
|
|
69193
69197
|
"form-action 'none'"
|
|
69194
69198
|
].join("; "),
|