Skip to content

Commit

Permalink
added X-Content-Type-Options: nosniff header
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Nov 13, 2024
1 parent d6e2ac8 commit 92f84c1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion webapps/console/components/DataView/EventsBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ const EventsBrowser0 = ({

useEffect(() => {
if (!actorId || !entitiesMap[actorId]) {
patchQueryStringState("actorId", entities[0].id);
if (entities.length > 0) {
patchQueryStringState("actorId", entities[0].id);
}
}
}, [actorId, entities, patchQueryStringState, entitiesMap]);

Expand Down Expand Up @@ -581,6 +583,7 @@ const EventsBrowser0 = ({
<DebouncedInput
style={{ width: 180 }}
value={search}
allowClear
onChange={e => {
searchFunc(e);
}}
Expand Down
4 changes: 4 additions & 0 deletions webapps/console/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ module.exports = {
key: "X-Frame-Options",
value: "DENY",
},
{
key: "X-Content-Type-Options",
value: "nosniff",
},
],
},
];
Expand Down
9 changes: 6 additions & 3 deletions webapps/ee-api/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ const nextConfig = {
key: "X-Frame-Options",
value: "DENY",
},
{
key: "X-Content-Type-Options",
value: "nosniff",
},
],
},
];
},
}
};

const withTM = require('next-transpile-modules')(['juava']); // pass the modules you would like to see transpiled
const withTM = require("next-transpile-modules")(["juava"]); // pass the modules you would like to see transpiled

module.exports = withTM(nextConfig);

0 comments on commit 92f84c1

Please sign in to comment.