How to develop a web project with local files?
MUHAMMED YILMAZ

MUHAMMED YILMAZ @muhyilmaz

Location:
Turkey Istanbul
Joined:
Jan 4, 2021

How to develop a web project with local files?

Publish Date: Mar 24
0 0

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:

Image description

Comments 0 total

    Add comment