summaryrefslogtreecommitdiff
path: root/cli/tests/disallow_http_from_https.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-05-21 13:06:12 +0200
committerGitHub <noreply@github.com>2020-05-21 13:06:12 +0200
commit5f9c1c7da6047ee8612e71f8ef4ca9c950b3a699 (patch)
tree7a2175a4c8c9a694924dad5183790d3c75a8bf5e /cli/tests/disallow_http_from_https.js
parentbebb8c029fff56f3a6e653b757583ab5c1d4b11f (diff)
fix: disallow http imports for modules loaded over https (#5680)
Diffstat (limited to 'cli/tests/disallow_http_from_https.js')
-rw-r--r--cli/tests/disallow_http_from_https.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tests/disallow_http_from_https.js b/cli/tests/disallow_http_from_https.js
new file mode 100644
index 000000000..fd30a023d
--- /dev/null
+++ b/cli/tests/disallow_http_from_https.js
@@ -0,0 +1,2 @@
+// Trying to import "http://", while this file is accessed by "https://"
+import "http://localhost:4545/cli/tests/001_hello.js";