Firefox does not load local file in iframe

I have a file

File: /// C: /Users/7%20Legged%20Spider/Desktop/test.html

When I install it in an iframe

<iframe src = "file: /// C: /Users/7%20Legged%20Spider/Desktop/test.html">

iframe is empty, why is this and how can I fix it?

+3
source share
1 answer

This is due to a security issue. You cannot get around this in any way.

You cannot use the local file as hrefbecause of:

  • Safety problems
  • Unexpected URLs (not everyone has C: \)
  • If you use it only for development, you can upload the file to your server to enable it.
+3
source

All Articles