We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfae285 commit 1f61df7Copy full SHA for 1f61df7
public_html/lists/index.php
@@ -54,7 +54,9 @@
54
55
$I18N = new phplist_I18N();
56
header('Access-Control-Allow-Origin: '.ACCESS_CONTROL_ALLOW_ORIGIN);
57
-header('Vary: Origin'); // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin#CORS_and_caching
+if (defined('ACCESS_CONTROL_ALLOW_ORIGINS') && count('ACCESS_CONTROL_ALLOW_ORIGINS') > 1) {
58
+ header('Vary: Origin'); // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin#CORS_and_caching
59
+}
60
61
if (!empty($GLOBALS['SessionTableName'])) {
62
require_once dirname(__FILE__).'/admin/sessionlib.php';
0 commit comments