我使用 gatsby 编写了一个静态页面并进行了部署。:80 没问题,当我将它托管在 github 静态页面上时,控制台也没有发送垃圾邮件错误。对于<GatsbyImage/>
我在项目中使用的每一个,我都会在我的静态页面上得到这个 chrome-console-error。
[Report Only] Refused to connect to '<URL>' because it violates the following Content Security Policy directive:
"connect-src bitbucket.org *.bitbucket.org bb-inf.net *.bb-inf.net analytics.atlassian.com as.atlassian.com
api-private.stg.atlassian.com api-private.atlassian.com cofs.staging.public.atl-paas.net cofs.prod.public.atl-paas.net intake.opbeat.com api.media.atlassian.com api.segment.io
xid.statuspage.io xid.atlassian.com xid.sourcetreeapp.com bam.nr-data.net sentry.io bqlf8qjztdtr.statuspage.io <URL>".
有人可以指出我 1. 理解问题 2. 正确处理它以避免所有这些控制台错误。我讨厌现场项目中的错误;-)