diff options
-rw-r--r-- | runtime/permissions/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/permissions/mod.rs b/runtime/permissions/mod.rs index 23c9917cd..5b2af0e0f 100644 --- a/runtime/permissions/mod.rs +++ b/runtime/permissions/mod.rs @@ -1601,7 +1601,7 @@ impl Permissions { ) -> Result<(), AnyError> { match specifier.scheme() { "file" => match specifier.to_file_path() { - Ok(path) => self.read.check(&path, None), + Ok(path) => self.read.check(&path, Some("import()")), Err(_) => Err(uri_error(format!( "Invalid file path.\n Specifier: {}", specifier @@ -1609,7 +1609,7 @@ impl Permissions { }, "data" => Ok(()), "blob" => Ok(()), - _ => self.net.check_url(specifier, None), + _ => self.net.check_url(specifier, Some("import()")), } } } |