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> {
|
): Promise<string> {
|
||||||
const apiUrls: string[] = [
|
const apiUrls: string[] = [
|
||||||
...Constants.defaultOverpassUrls,
|
...Constants.allServers,
|
||||||
Constants.countryCoderEndpoint,
|
Constants.countryCoderEndpoint,
|
||||||
Constants.nominatimEndpoint,
|
Constants.nominatimEndpoint,
|
||||||
"https://www.openstreetmap.org",
|
"https://www.openstreetmap.org",
|
||||||
"https://api.openstreetmap.org",
|
"https://api.openstreetmap.org",
|
||||||
"https://pietervdvn.goatcounter.com",
|
"https://pietervdvn.goatcounter.com",
|
||||||
"https://cache.mapcomplete.org",
|
|
||||||
"https://proxy.mapcomplete.org",
|
|
||||||
"https://proxy0.mapcomplete.org",
|
|
||||||
].concat(...(await this.eliUrls()))
|
].concat(...(await this.eliUrls()))
|
||||||
|
|
||||||
SpecialVisualizations.specialVisualizations.forEach((sv) => {
|
SpecialVisualizations.specialVisualizations.forEach((sv) => {
|
||||||
|
|
|
@ -169,6 +169,8 @@ export default class Constants {
|
||||||
public static readonly maptilerApiKey = "GvoVAJgu46I5rZapJuAy"
|
public static readonly maptilerApiKey = "GvoVAJgu46I5rZapJuAy"
|
||||||
public static readonly SummaryServer: string = Constants.config.summary_server
|
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 {
|
private static isRetina(): boolean {
|
||||||
if (Utils.runningFromConsole) {
|
if (Utils.runningFromConsole) {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue