diff --git a/docs/en/Getting-Started-React-Native.md b/docs/en/Getting-Started-React-Native.md index 7bd9495e38..fe4cf478de 100644 --- a/docs/en/Getting-Started-React-Native.md +++ b/docs/en/Getting-Started-React-Native.md @@ -53,6 +53,27 @@ Please do the following: > React Native application does not trust the auto-generated .NET HTTPS certificate. You should use **HTTP** during the development. +> When you are using OpenIddict, You should remove 'clientSecret' on Environment.js (if exists) and disable "HTTPS-only" settings. (Openiddict has default since Version 6.0) + +### How to disable Https-only in Openiddict. +You should add this code on `MyProjectName`HttpApiHostModule. + +```csharp + public override void PreConfigureServices(ServiceConfigurationContext context) + { + #if DEBUG + PreConfigure(options => + { + options + .UseAspNetCore() + .DisableTransportSecurityRequirement(); + }); + #endif + //.... + } + +``` + A React Native application running on an Android emulator or a physical phone **can not connect to the backend** on `localhost`. To fix this problem, it is necessary to run the backend application on your **local IP address**. {{ if Tiered == "No"}}