Parcourir la 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 il y a 4 ans
Parent
révision
a730d4e0e4
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. +5
    -1
      design/privateheader.php

+ 5
- 1
design/privateheader.php Voir le fichier

@@ -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';


Chargement…
Annuler
Enregistrer