Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 41c0c88

Browse files
almirfilhosergey-akhalkov
authored andcommitted
Add information about CodePush domains in iOS Setup docs (#830)
* Add information about CodePush domains in iOS Setup docs * Fix typo
1 parent bb997f0 commit 41c0c88

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

docs/setup-ios.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,36 @@ To let the CodePush runtime know which deployment it should query for updates ag
117117
![Deployment list](https://cloud.githubusercontent.com/assets/116461/11601733/13011d5e-9a8a-11e5-9ce2-b100498ffb34.png)
118118

119119
In order to effectively make use of the `Staging` and `Production` deployments that were created along with your CodePush app, refer to the [multi-deployment testing](../README.md#multi-deployment-testing) docs below before actually moving your app's usage of CodePush into production.
120+
121+
### HTTP exception domains configuration (iOS)
122+
123+
CodePush plugin makes HTTPS requests to the following domains:
124+
125+
- codepush.azurewebsites.net
126+
- codepush.blob.core.windows.net
127+
- codepushupdates.azureedge.net
128+
129+
If you want to change the default HTTP security configuration for any of these domains, you have to define the [`NSAppTransportSecurity` (ATS)][ats] configuration inside your __Info.plist__ file:
130+
131+
```xml
132+
<plist version="1.0">
133+
<dict>
134+
<!-- ...other configs... -->
135+
136+
<key>NSAppTransportSecurity</key>
137+
<dict>
138+
<key>NSExceptionDomains</key>
139+
<dict>
140+
<key>codepush.azurewebsites.net</key>
141+
<dict><!-- read the ATS Apple Docs for available options --></dict>
142+
</dict>
143+
</dict>
144+
145+
<!-- ...other configs... -->
146+
</dict>
147+
</plist>
148+
```
149+
150+
Before doing anything, please [read the docs][ats] first.
151+
152+
[ats]: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33

0 commit comments

Comments
 (0)