Hello all,
When you develop a web project in your environment and you try to work with iframes for showing some file/files, maybe you get this error:
Not allowed to load local resource: XXXPath.
To prevent this, you may use your project local directory. But if you do not want this, another way possible:
To create a mini http server with python
To do this you should have python installed in your environment.
If you installed python just run this command in your file directory:
python -m http.server 8000
Herewith, you can access your file via a http local url. Like here:
© 版权声明
THE END
暂无评论内容