Browse Source

Test using CDN jquery but hiding the referrer

* Use jquery CDN for jquery
* Add meta hide-origin to not reveal users of SM to the CDN.
undefined
Tomochin 3 years ago
parent
commit
a730d4e0e4
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      design/privateheader.php

+ 5
- 1
design/privateheader.php View File

@@ -10,6 +10,7 @@ define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php');
<meta charset="utf-8" />
<meta name="userid" content="<?=G::$LoggedUser['ID']?>" />
<meta name="authkey" content="<?=G::$LoggedUser['AuthKey']?>" />
<meta name="referrer" content="same-origin" />
<link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico')?>" />
<link rel="search" type="application/opensearchdescription+xml" title="<?=SITE_NAME?>" href="<?=STATIC_SERVER?>opensearch.xml">
<link rel="alternate" type="application/rss+xml"
@@ -94,8 +95,11 @@ foreach ($ExtraCSS as $CSS) {
<link rel="stylesheet" type="text/css" media="screen" href="<?=STATIC_SERVER."styles/$CSS/style.css?v=".filemtime(SERVER_ROOT.STATIC_SERVER."styles/$CSS/style.css")?>" />
<?
}
?>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" type="text/javascript"></script>
<?

$Scripts = array_merge(array('jquery', 'global', 'ajax.class', 'jquery.autocomplete', 'autocomplete', 'tooltipster'), explode(',', $JSIncludes));
$Scripts = array_merge(array('global', 'ajax.class', 'jquery.autocomplete', 'autocomplete', 'tooltipster'), explode(',', $JSIncludes));
foreach ($Scripts as $Script) {
if (trim($Script) == '') { continue; }
$Async = (in_array($Script, ['jquery','global','ajax.class'])) ? '' : 'async';


Loading…
Cancel
Save