How to add all google tlds for CSP

Created on 13 June 2022, almost 3 years ago
Updated 24 February 2025, 3 months ago

Apologies if this has been answered somewhere but I could not find a specific solution.

Problem/Motivation

Im doing our initial setup of CSP configuration and the input field for "script-src" only allows X characters so were restrained to adding all the google country tld's.

We need to be able to add all the tld's for our google adservice which loads scripts from different country tld's. For example, users from Spain will get script from https://adservice.google.es/... and users from Vietnam get script from https://adservice.google.com.vn/..., etc..

Ive found all of googles tld's here: https://www.google.com/supported_domains

So I guess this is a 2 part question.

  1. How do we add all those domains considering the input field has a character limit?
  2. Assuming I wanted move all the settings to a file in the "policy-uri", what type of file do we create and what is the syntax we would use in that file?

Thanks!

πŸ’¬ Support request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States justclint

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024