googlemaps / googlemaps/js-samples

Run with main branch and browser reports that "Refused to execut inline script etc"

Open
#1,187 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
805
Forks
836
PR merge metrics
No merged PRs in 30d

Description

Got this issue with browser after following instructions i.e npm i and npm start on main branch.

Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-kLOQNAVOaBgADiUv3KS/St2g6k1exicli/nlGA4Ku2Y='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

Using node v16.15.0.

I had not issues when running individual module checkout.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.