config: add Matomo to the connect_src
Content Security Policy
Solves Matomo connections being blocked. Fix #6949
This commit is contained in:
parent
9647e2b55c
commit
3276db016f
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ Rails.application.config.content_security_policy do |policy|
|
|||
connect_whitelist << URI(API_ADRESSE_URL).host if API_ADRESSE_URL.present?
|
||||
connect_whitelist << URI(API_EDUCATION_URL).host if API_EDUCATION_URL.present?
|
||||
connect_whitelist << URI(API_GEO_URL).host if API_GEO_URL.present?
|
||||
connect_whitelist << Rails.application.secrets.matomo[:host] if Rails.application.secrets.matomo[:enabled]
|
||||
policy.connect_src(:self, *connect_whitelist)
|
||||
|
||||
# Pour tout le reste, par défaut on accepte uniquement ce qui vient de chez nous
|
||||
|
|
Loading…
Reference in a new issue