iOS api calls not passing specific origin name (CORS issue)

In capacitor.config.json file I mentioned the hostname and androidScheme and iosScheme and allow the origin capacitor://hostName In iOS I am getting error 403. When I looked on the log file to check the request origin name I found that it is "-".

This is what I got in nginx log file. 27/Oct/2023:16:58:37 +0530] "GET /api/user/login/mobile-otp?mobile=1111111111&device=mobile-app HTTP/1.1" 403 153 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" "-"

on Xcode log when app initialise I am properly getting that "Loading app at capacitor://hostname..."

and getting below response while calling the api {"headers":{"normalizedNames":{},"lazyUpdate":null,"headers":{}},"status":0,"statusText":"Unknown Error","url":"https://hostname/api/user/login/mobile-otp?mobile=9089897809&device=mobile-app","ok":false,"name":"HttpErrorResponse","message":"Http failure response for https://teetime-booking-bknd.intellihub.ai/api/user/login/mobile-otp?mobile=9089897809&device=mobile-app: 0 Unknown Error","error":{"isTrusted":true}}

iOS api calls not passing specific origin name (CORS issue)
 
 
Q