Function __global->_csp_extract_sources_list

Definitions

sources/csp.php

  • Extracts CSP sources from the given string, plus trusted sites.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$level integer required parameter N/A N/A Trusted sites level
$sources_csp string Blank (empty string) N/A N/A Comma-separated list of additional valid CSP 'sources' (blank: just trusted sites)
$include_self boolean True N/A N/A Include a self reference

Return

  • CSP sources (null: allow all, only possible when $sources_csp is passed) (empty: disallow all except local)
  • Type: ?array
  • Set: N/A
  • Range: N/A