mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-08 16:57:14 +01:00
feat(security): enhance security policies and implement input validation across multiple files
This commit is contained in:
1 parent
0ef279e0da
commit
58cd1a8893
13 files changed
+293
-52
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user