【发布时间】:2020-09-29 14:23:50
【问题描述】:
我使用 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. 正确处理它以避免所有这些控制台错误。我讨厌实时项目中的错误;-)
【问题讨论】:
标签: bitbucket gatsby gatsby-image static-pages