Commit bafe8b2c authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

checking csp for eval only

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