Open
Description
Describe the solution you'd like
The @googlemaps/js-api-loader should support CSP TrustedTypes
Describe alternatives you've considered
Disabling CSP
Additional context
When CSP is enabled on the server, there will be a runtime error
TypeError: Failed to set the 'src' property on 'HTMLScriptElement': This document requires 'TrustedScriptURL' assignment.
In the library index.mjs file, line #369
a.src = this.url + ?
+ e; this assignment is the main problem
Tt should have been something like script.src = getPolicy()?.createScriptURL(url) ?? url; instead
and the library should register its TrustedType policy out of the box