Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2019-03-10 19:07:39 +0300
committerStefan Giehl <stefan@matomo.org>2019-03-10 19:07:39 +0300
commit7148c64698f09040e13149cfe5de27cebba07923 (patch)
tree6f3414ebade2be390c68658fef240158434aaa97 /tests/resources/embed-file.html
parentc9bc3e3e949d7bb8ccf8ff6e6271cfd823e5656b (diff)
Propagate token auth in ajax requests for widgetized reports AND enable_framed_pages = 1. (#14133)
* Propagate token auth in ajax requests if something is widgetized OR if enable_framed_pages is set to 1. * Add UI tests for embedding entire app. * Forgot to add file. * Adds missing UI file
Diffstat (limited to 'tests/resources/embed-file.html')
-rw-r--r--tests/resources/embed-file.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/resources/embed-file.html b/tests/resources/embed-file.html
new file mode 100644
index 0000000000..02078a5b5b
--- /dev/null
+++ b/tests/resources/embed-file.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Test Embed</title>
+ <style>
+ html, body {
+ height: calc(100%);
+ }
+
+ iframe {
+ width: 100%;
+ height: calc(100%);
+ }
+ </style>
+</head>
+<body>
+ <script>
+ (function () {
+ var url = decodeURIComponent(window.location.hash.substring(1));
+ console.log(url);
+ var iframe = document.createElement('iframe');
+ iframe.src = url;
+ document.body.appendChild(iframe);
+ })();
+ </script>
+</body>
+</html> \ No newline at end of file