camstack 1.2.133 → 1.2.135
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
CHANGED
|
@@ -38,7 +38,7 @@ async function runServe(args) {
|
|
|
38
38
|
...typeof values.data === "string" ? { data: values.data } : {}
|
|
39
39
|
};
|
|
40
40
|
Object.assign(process.env, buildServeEnv(opts));
|
|
41
|
-
await import("./launcher-
|
|
41
|
+
await import("./launcher-CGCHY5QF.js");
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// src/commands/agent.ts
|
|
@@ -83,7 +83,7 @@ async function runAgent(args) {
|
|
|
83
83
|
...typeof values.port === "string" ? { port: values.port } : {}
|
|
84
84
|
};
|
|
85
85
|
Object.assign(process.env, buildAgentEnv(opts));
|
|
86
|
-
await import("./launcher-
|
|
86
|
+
await import("./launcher-CGCHY5QF.js");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// src/commands/setup.ts
|
|
@@ -416788,6 +416788,32 @@ var require_spa_mount = __commonJS({
|
|
|
416788
416788
|
}
|
|
416789
416789
|
});
|
|
416790
416790
|
|
|
416791
|
+
// ../../server/backend/dist/api/static/frame-policy.js
|
|
416792
|
+
var require_frame_policy = __commonJS({
|
|
416793
|
+
"../../server/backend/dist/api/static/frame-policy.js"(exports) {
|
|
416794
|
+
"use strict";
|
|
416795
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
416796
|
+
exports.FRAME_ANCESTORS_POLICY = void 0;
|
|
416797
|
+
exports.isFramePolicyTarget = isFramePolicyTarget;
|
|
416798
|
+
exports.registerFramePolicy = registerFramePolicy;
|
|
416799
|
+
exports.FRAME_ANCESTORS_POLICY = "frame-ancestors 'self'";
|
|
416800
|
+
var CSP_HEADER = "content-security-policy";
|
|
416801
|
+
function isFramePolicyTarget(contentType) {
|
|
416802
|
+
return typeof contentType === "string" && contentType.trim().toLowerCase().startsWith("text/html");
|
|
416803
|
+
}
|
|
416804
|
+
function registerFramePolicy(fastify) {
|
|
416805
|
+
fastify.addHook("onSend", async (_request, reply, payload) => {
|
|
416806
|
+
if (!isFramePolicyTarget(reply.getHeader("content-type")))
|
|
416807
|
+
return payload;
|
|
416808
|
+
if (reply.getHeader(CSP_HEADER) !== void 0)
|
|
416809
|
+
return payload;
|
|
416810
|
+
reply.header(CSP_HEADER, exports.FRAME_ANCESTORS_POLICY);
|
|
416811
|
+
return payload;
|
|
416812
|
+
});
|
|
416813
|
+
}
|
|
416814
|
+
}
|
|
416815
|
+
});
|
|
416816
|
+
|
|
416791
416817
|
// ../../server/backend/dist/boot/integration-id-backfill.js
|
|
416792
416818
|
var require_integration_id_backfill = __commonJS({
|
|
416793
416819
|
"../../server/backend/dist/boot/integration-id-backfill.js"(exports) {
|
|
@@ -432410,6 +432436,7 @@ var require_main4 = __commonJS({
|
|
|
432410
432436
|
var precompressed_asset_js_1 = require_precompressed_asset();
|
|
432411
432437
|
var spa_static_1 = require_spa_static();
|
|
432412
432438
|
var spa_mount_1 = require_spa_mount();
|
|
432439
|
+
var frame_policy_1 = require_frame_policy();
|
|
432413
432440
|
var cap_providers_1 = require_cap_providers();
|
|
432414
432441
|
var logging_settings_1 = require_logging_settings();
|
|
432415
432442
|
var request_census_settings_1 = require_request_census_settings();
|
|
@@ -432561,6 +432588,7 @@ var require_main4 = __commonJS({
|
|
|
432561
432588
|
app.enableCors();
|
|
432562
432589
|
const fastify = app.getHttpAdapter().getInstance();
|
|
432563
432590
|
await fastify.register(cookie_1.default);
|
|
432591
|
+
(0, frame_policy_1.registerFramePolicy)(fastify);
|
|
432564
432592
|
fastify.addHook("onRequest", async (request) => {
|
|
432565
432593
|
(0, sse_no_compression_js_1.markSseRequestNoCompression)(request);
|
|
432566
432594
|
});
|