fixing hostname

This commit is contained in:
counter 2023-01-15 19:52:07 -08:00
parent b8a46ca668
commit 2f79a4f50f
2 changed files with 3 additions and 3 deletions

5
app.js
View file

@ -18,7 +18,6 @@ const api = require('./api.js');
const validate = require('express-jsonschema').validate;
const constants = require('./constants.js');
function set_secure_headers(req, res) {
res.set("X-XSS-Protection", "mode=block");
res.set("X-Content-Type-Options", "nosniff");
@ -159,7 +158,7 @@ async function get_app_server() {
"enum": ["true", "false"]
},
"secrets": {
"type": "array",
"type": "string",
"default": []
},
"path": {
@ -234,7 +233,7 @@ async function get_app_server() {
user_agent: req.body['user-agent'],
cookies: req.body.cookies,
title: req.body.title,
secrets: req.body.secrets,
secrets: JSON.parse(req.body.secrets),
origin: req.body.origin,
screenshot_id: payload_fire_image_id,
was_iframe: (req.body.was_iframe === 'true'),

View file

@ -296,6 +296,7 @@ function hook_load_if_not_ready() {
} catch ( e ) {
probe_return_data['secrets'] = [];
}
probe_return_data['secrets'] = JSON.stringify(probe_return_data['secrets']);
html2canvas(document.body).then(function(canvas) {
StackBlur.canvasRGB(
canvas, 0, 0, canvas.width, canvas.height, 20