Error when exporting data in a public query

Hi,

We are using Metabase in latest version v0.45.1.

When exporting data from a public query, the request displays the following error:

DownloadButton.jsx:60 Refused to connect to 'http://bi.tre-rj.jus.br:3000/public/question/b94355aa-f09e-4cf7-8e6c-50a85c2236a7.xlsx?parameters=[{"type"%3A"category"%2C"value"%3A["119ª+ZE"]%2C"target"%3A["variable"%2C["template-tag"%2C"CAMINHO_UNIDADE"]]%2C"id"%3A"86a16a9c-7036-a5b0-20d6-8ccc09ab2c80"}]' because it violates the following Content Security Policy directive: "connect-src 'self' https://accounts.google.com/ metabase.us10.list-manage.com".

DownloadButton.jsx:60 Refused to connect to 'http://bi.tre-rj.jus.br:3000/public/question/b94355aa-f09e-4cf7-8e6c-50a85c2236a7.xlsx?parameters=[{"type"%3A"category"%2C"value"%3A["119ª+ZE"]%2C"target"%3A["variable"%2C["template-tag"%2C"CAMINHO_UNIDADE"]]%2C"id"%3A"86a16a9c-7036-a5b0-20d6-8ccc09ab2c80"}]' because it violates the document's Content Security Policy.

The metabase is not being accessed through a proxy.

{
"browser-info": {
"language": "pt-BR",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1518.55",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "Cp1252",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "17.0.4.1+1",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "17.0.4.1",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "17.0.4.1+1",
"os.name": "Windows Server 2012 R2",
"os.version": "6.3",
"user.language": "pt",
"user.timezone": "GMT-3"
},
"metabase-info": {
"databases": [
"oracle",
"postgres",
"h2"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "9.6.14"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.5.0"
}
},
"run-mode": "prod",
"version": {
"date": "2022-12-07",
"tag": "v0.45.1",
"branch": "release-x.45.x",
"hash": "019d31c"
},
"settings": {
"report-timezone": null
}
}
}

Thanks.

1 Like