mirror of
https://github.com/Termix-SSH/Mobile.git
synced 2026-07-28 05:51:43 +02:00
21 lines
478 B
JavaScript
21 lines
478 B
JavaScript
const { withInfoPlist } = require('@expo/config-plugins');
|
|
|
|
const withIOSNetworkSecurity = (config) => {
|
|
return withInfoPlist(config, (config) => {
|
|
const infoPlist = config.modResults;
|
|
|
|
infoPlist.NSAppTransportSecurity = {
|
|
NSAllowsArbitraryLoads: true,
|
|
|
|
NSAllowsLocalNetworking: true,
|
|
|
|
NSAllowsArbitraryLoadsInWebContent: true,
|
|
|
|
NSAllowsArbitraryLoadsForMedia: true,
|
|
};
|
|
|
|
return config;
|
|
});
|
|
};
|
|
|
|
module.exports = withIOSNetworkSecurity; |