Home > Back-end >  is it secure that all capacitor apps use localhost as an origin
is it secure that all capacitor apps use localhost as an origin

Time:11-30

since all capacitor apps run on a WebView and use localhost as an origin does this means that the data stored in the WebView's localStorage or indexeddb is shared between hybrid apps. Since the origin is the same for all apps...

CodePudding user response:

you may use @capaciors/storage to target native storage and for secure storage you can also use the comunity plugin secure-storage

import { SecureStoragePlugin } from 'capacitor-secure-storage-plugin';

https://github.com/martinkasa/capacitor-secure-storage-plugin

if you want to use a paid implementation there is Ionics secure storage as well

https://ionic.io/docs/secure-storage#:~:text=Secure Storage Ionic Secure Storage is a cross-platform,when used with the Ionic Storage utility library.

CodePudding user response:

The data is unique per app on both iOS and Android, it’s not shared within apps.

  • Related