Skip to content

feat: use TrustedTypes policy to create script URL#1217

Merged
usefulthink merged 3 commits into
googlemaps:mainfrom
usefulthink:feat/trusted-types
Jun 3, 2026
Merged

feat: use TrustedTypes policy to create script URL#1217
usefulthink merged 3 commits into
googlemaps:mainfrom
usefulthink:feat/trusted-types

Conversation

@usefulthink

Copy link
Copy Markdown
Contributor

Introduces using of trusted types to create the script url for loading the maps API if supported and allowed by the CSP.

Fixes #850

Introduces using of trusted types to create the script url for loading the maps API if supported and allowed by the CSP.
@usefulthink usefulthink force-pushed the feat/trusted-types branch from 95f8b78 to ac1b3fd Compare June 2, 2026 19:28
Enhanced TrustedTypes policy usage with improved error handling and policy creation for CSP. Added documentation on using `@googlemaps/js-api-loader` in CSP environments with Trusted Types enabled. Updated TypeScript configuration to include `trusted-types`.
@usefulthink usefulthink merged commit b370586 into googlemaps:main Jun 3, 2026
14 checks passed
@usefulthink usefulthink deleted the feat/trusted-types branch June 3, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for / use TrustedTypes (CSP)

2 participants