Anonymous
Отключить NSAppTransportSecurity в Expo React Native
Сообщение
Anonymous » 01 апр 2024, 16:05
Я хочу отключить «NSAppTransportSecurity» в Expo React Native.
После сборки я получил ошибку «Ошибка сетевого запроса».
Я хотел запустить HTTP без SSL после iOS build.
Это мой файл app.json
Код: Выделить всё
{
"expo": {
"name": "VSOLV People",
"slug": "VSOLV-People",
"version": "1.0.7",
"orientation": "portrait",
"icon": "./app/assets/pictures/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./app/assets/pictures/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.vsolv.people",
"buildNumber": "28",
"infoPlist": {
"NSLocationAlwaysAndWhenInUseUsageDescription": "This app needs access to your location to check your work premises, such as your client's location, branch offices, or main office, for attendance tracking and verification purposes.",
"NSAppTransportSecurity": {
"NSAllowsArbitraryLoads": true,
"NSAllowsArbitraryLoadsForMedia": true,
"NSAllowsArbitraryLoadsInWebContent": true,
"NSAllowsLocalNetworking": true
}
}
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./app/assets/pictures/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
},
"package": "com.vsolv.people",
"versionCode": 15
},
"web": {
"favicon": "./app/assets/pictures/favicon.png"
},
"extra": {
"eas": {
"projectId": "cae93ac2-6b5c-494d-82db-aee387b2ff18"
}
},
"plugins": [
[
"expo-build-properties",
{
"android": {
"usesCleartextTraffic": true
}
}
]
]
}
}
Мне нужно решение для доступа к HTTP без SSL после сборки и отправки в магазин приложений.
Подробнее здесь:
https://stackoverflow.com/questions/782 ... act-native
1711976724
Anonymous
Я хочу отключить «NSAppTransportSecurity» в Expo React Native. После сборки я получил ошибку «Ошибка сетевого запроса». Я хотел запустить HTTP без SSL после iOS build. Это мой файл app.json [code]{ "expo": { "name": "VSOLV People", "slug": "VSOLV-People", "version": "1.0.7", "orientation": "portrait", "icon": "./app/assets/pictures/icon.png", "userInterfaceStyle": "light", "splash": { "image": "./app/assets/pictures/splash.png", "resizeMode": "contain", "backgroundColor": "#ffffff" }, "updates": { "fallbackToCacheTimeout": 0 }, "assetBundlePatterns": [ "**/*" ], "ios": { "supportsTablet": true, "bundleIdentifier": "com.vsolv.people", "buildNumber": "28", "infoPlist": { "NSLocationAlwaysAndWhenInUseUsageDescription": "This app needs access to your location to check your work premises, such as your client's location, branch offices, or main office, for attendance tracking and verification purposes.", "NSAppTransportSecurity": { "NSAllowsArbitraryLoads": true, "NSAllowsArbitraryLoadsForMedia": true, "NSAllowsArbitraryLoadsInWebContent": true, "NSAllowsLocalNetworking": true } } }, "android": { "adaptiveIcon": { "foregroundImage": "./app/assets/pictures/adaptive-icon.png", "backgroundColor": "#FFFFFF" }, "package": "com.vsolv.people", "versionCode": 15 }, "web": { "favicon": "./app/assets/pictures/favicon.png" }, "extra": { "eas": { "projectId": "cae93ac2-6b5c-494d-82db-aee387b2ff18" } }, "plugins": [ [ "expo-build-properties", { "android": { "usesCleartextTraffic": true } } ] ] } } [/code] Мне нужно решение для доступа к HTTP без SSL после сборки и отправки в магазин приложений. Подробнее здесь: [url]https://stackoverflow.com/questions/78255203/disable-nsapptransportsecurity-in-expo-react-native[/url]