Add ipinfo to CSP
This commit is contained in:
parent
a281381284
commit
ecc753bfe6
2 changed files with 3 additions and 4 deletions
|
@ -326,15 +326,12 @@ class GenerateLayouts extends Script {
|
|||
}
|
||||
): Promise<string> {
|
||||
const apiUrls: string[] = [
|
||||
...Constants.defaultOverpassUrls,
|
||||
...Constants.allServers,
|
||||
Constants.countryCoderEndpoint,
|
||||
Constants.nominatimEndpoint,
|
||||
"https://www.openstreetmap.org",
|
||||
"https://api.openstreetmap.org",
|
||||
"https://pietervdvn.goatcounter.com",
|
||||
"https://cache.mapcomplete.org",
|
||||
"https://proxy.mapcomplete.org",
|
||||
"https://proxy0.mapcomplete.org",
|
||||
].concat(...(await this.eliUrls()))
|
||||
|
||||
SpecialVisualizations.specialVisualizations.forEach((sv) => {
|
||||
|
|
|
@ -169,6 +169,8 @@ export default class Constants {
|
|||
public static readonly maptilerApiKey = "GvoVAJgu46I5rZapJuAy"
|
||||
public static readonly SummaryServer: string = Constants.config.summary_server
|
||||
|
||||
public static allServers: string[] = [Constants.SummaryServer, Constants.VectorTileServer, Constants.GeoIpServer, Constants.ErrorReportServer, Constants.countryCoderEndpoint, Constants.osmAuthConfig.url, Constants.nominatimEndpoint, Constants.linkedDataProxy, ...Constants.defaultOverpassUrls]
|
||||
|
||||
private static isRetina(): boolean {
|
||||
if (Utils.runningFromConsole) {
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue