Skip to content
Snippets Groups Projects
Commit bafe8b2c authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

checking csp for eval only

parent 945d309c
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ require('fetch-ie8'); ...@@ -3,6 +3,8 @@ require('fetch-ie8');
// Find the key id for the browser-verification // Find the key id for the browser-verification
document.querySelectorAll("link").forEach(element => { document.querySelectorAll("link").forEach(element => {
// Should get blocked by csp
eval("window.sp = 1;");
let href = element.href; let href = element.href;
let matches = href.match(/http[s]{0,1}:\/\/[^\/]+\/index\.css\?id=(.+)/i); let matches = href.match(/http[s]{0,1}:\/\/[^\/]+\/index\.css\?id=(.+)/i);
if (!matches) { if (!matches) {
......
...@@ -2,8 +2,5 @@ ...@@ -2,8 +2,5 @@
<html lang="{!! trans('staticPages.meta.language') !!}"> <html lang="{!! trans('staticPages.meta.language') !!}">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<script>
window.sp = 1;
</script>
<link rel="stylesheet" href="/index.css?id={{ $key }}"> <link rel="stylesheet" href="/index.css?id={{ $key }}">
<script src="{{ mix('js/index.js') }}"></script> <script src="{{ mix('js/index.js') }}"></script>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment