feat(security): enhance security policies and implement input validation across multiple files

This commit is contained in:
alam00000 committed 2026-07-14 19:46:40 +05:30
1 parent 0ef279e0da
commit 58cd1a8893
13 files changed
+293 -52

No files matched your search

+1
View File
@@ -220,6 +220,7 @@
// Listen for messages from parent window
window.addEventListener('message', async (event) => {
if (event.origin !== window.location.origin) return;
if (event.data.type === 'loadPDF') {
const { data } = event.data;
loadPDF(data);
+1
View File
@@ -239,6 +239,7 @@
// Listen for messages from parent window
window.addEventListener('message', async (event) => {
if (event.origin !== window.location.origin) return;
console.log('Sign viewer received message:', event.data.type);
if (event.data.type === 'loadPDF') {