summaryrefslogtreecommitdiff
path: root/wipfel-droid/app/src/main/res
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 18:17:47 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 18:17:47 +0100
commita159551d058606a673b14c5568aa72cf538f9934 (patch)
treebf9454f2852607f1f2ef9c070ed94f0ff44c6a21 /wipfel-droid/app/src/main/res
parent60b07b483f49adfee51480b029f23f7c4913886f (diff)
web: allow any file type in the image picker
MediaProvider only redacts GPS EXIF in files it indexes as images. A copy renamed to a non-image extension (or under a .nomedia folder) reaches the browser untouched — an all-files picker makes that route usable on GrapheneOS/AOSP where browsers cannot hold ACCESS_MEDIA_LOCATION.
Diffstat (limited to 'wipfel-droid/app/src/main/res')
-rw-r--r--wipfel-droid/app/src/main/res/xml/network_security_config.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/wipfel-droid/app/src/main/res/xml/network_security_config.xml b/wipfel-droid/app/src/main/res/xml/network_security_config.xml
new file mode 100644
index 0000000..2434fb8
--- /dev/null
+++ b/wipfel-droid/app/src/main/res/xml/network_security_config.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<network-security-config>
+ <!-- the bundled site is served from a loopback HTTP server so that
+ fetch(), WASM streaming and (later) service workers behave like a
+ real origin; nothing else may talk cleartext -->
+ <domain-config cleartextTrafficPermitted="true">
+ <domain includeSubdomains="false">127.0.0.1</domain>
+ <domain includeSubdomains="false">localhost</domain>
+ </domain-config>
+ <base-config cleartextTrafficPermitted="false" />
+</network-security-config>