I need to render iframe
in my Electron application:
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <iframe sandbox='allow-scripts' src='frm.html'></iframe> </body> </html>
where the frm.html
links the local file script foo.js
which is part of my Electron application
<!DOCTYPE HTML> <html> <head> <title></title> <script src="foo.js"></script> </head> <body> <p>Inside iframe</p> </body> </html>
When I run the application in Electron I can see this error in devtools console
Not allowed to load local resource: file:///C:/electron/app1/foo.js
Is it possible such scenario in Electron?