Index: openacs-4/packages/openacs-bootstrap3-theme/tcl/init-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-bootstrap3-theme/tcl/init-procs.tcl,v diff -u -r1.5.2.3 -r1.5.2.4 --- openacs-4/packages/openacs-bootstrap3-theme/tcl/init-procs.tcl 9 Feb 2020 15:45:31 -0000 1.5.2.3 +++ openacs-4/packages/openacs-bootstrap3-theme/tcl/init-procs.tcl 18 May 2020 20:56:34 -0000 1.5.2.4 @@ -45,7 +45,17 @@ urn:ad:css:bootstrap3 css/bootstrap.min.css urn:ad:js:bootstrap3 js/bootstrap.min.js } - + if {$cdnHost ne ""} { + lappend result csp_lists [subst { + urn:ad:css:bootstrap3 { + style-src $cdnHost + font-src $cdnHost + } + urn:ad:js:bootstrap3 { + script-src $cdnHost + } + }] + } return $result } } Index: openacs-4/packages/openacs-bootstrap3-theme/tcl/resource-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-bootstrap3-theme/tcl/resource-init.tcl,v diff -u -r1.3.2.3 -r1.3.2.4 --- openacs-4/packages/openacs-bootstrap3-theme/tcl/resource-init.tcl 9 Feb 2020 15:45:31 -0000 1.3.2.3 +++ openacs-4/packages/openacs-bootstrap3-theme/tcl/resource-init.tcl 18 May 2020 20:56:35 -0000 1.3.2.4 @@ -14,7 +14,10 @@ foreach URN [dict keys [dict get $resource_info urnMap]] { template::register_urn \ -urn $URN \ - -resource $prefix/[dict get $resource_info urnMap $URN] + -resource $prefix/[dict get $resource_info urnMap $URN] \ + -csp_list [expr {[dict exists $resource_info csp_lists $URN] + ? [dict set $resource_info csp_lists $URN] + : ""}] } template::register_urn \