-
-
Notifications
You must be signed in to change notification settings - Fork 628
Expand file tree
/
Copy pathdefault.json
More file actions
34 lines (34 loc) · 1.59 KB
/
Copy pathdefault.json
File metadata and controls
34 lines (34 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"$schema": "https://schema.tauri.app/config/2",
"identifier": "default",
"description": "Default capabilities for GeoLibre Desktop",
"windows": ["main"],
"permissions": [
"core:default",
"dialog:default",
"fs:default",
"fs:allow-read-file",
"fs:allow-read-text-file",
"fs:allow-write-file",
"fs:allow-write-text-file",
{
"identifier": "opener:allow-open-url",
"allow": [
{ "url": "http://*" },
{ "url": "https://*" }
]
},
{
"comment": "Hosts routed through the native HTTP client to bypass the WebView's CORS. Geocoding (place search / reverse geocode): public Nominatim's CDN intermittently omits the CORS header on cached responses (rejected as 'Search failed'), and the native client can send the User-Agent Nominatim's policy requires — keep the geocoder hosts in sync with the GEOCODING_PROVIDERS registry / lib/geocoding-fetch.ts. share.geolibre.app (project Share + gallery): its CORS policy allows the web origin but not the Tauri WebView origin, so browser fetches fail as 'Could not reach share.geolibre.app' — see lib/share-fetch.ts. Any other host (custom/self-hosted geocoder, third-party project URL) falls back to the browser fetch.",
"identifier": "http:default",
"allow": [
{ "url": "https://nominatim.openstreetmap.org/*" },
{ "url": "https://api.geocode.earth/*" },
{ "url": "https://geocode.arcgis.com/*" },
{ "url": "https://api.mapbox.com/*" },
{ "url": "https://maps.googleapis.com/*" },
{ "url": "https://share.geolibre.app/*" }
]
}
]
}