Whitelist redirect for ios

Hello everyone!
for my authentication I´m calling an openid provider throw the InAppBrowser. On a valid login it redirects to localhost where I receive a token. It is not working on emulator and device. Below is the error message. I think I have to whitelist localhost and maybe the url from the provider, but I´m not sure. Do you have any idea or hint for me?

Thank you very much!
Jure

2018-04-29 16:31:00.645125+0200 [2864:1179088] WF: _WebFilterIsActive returning: NO
2018-04-29 16:31:00.953483+0200 [2864:1179088] WF: _userSettingsForUser mobile: {
    filterBlacklist =     (
    );
    filterWhitelist =     (
    );
    restrictWeb = 1;
    useContentFilter = 0;
    useContentFilterOverrides = 0;
    whitelistEnabled = 0;
}
2018-04-29 16:31:00.955784+0200 [2864:1179088] WF: _WebFilterIsActive returning: NO
2018-04-29 16:31:01.841147+0200 [2864:1179379] TIC TCP Conn Failed [11:0x1c017ca40]: 1:61 Err(61)
2018-04-29 16:31:01.841346+0200 [2864:1179379] Task <FCAB611A-DCB9-40B9-A645-EF6C406F2A05>.<0> HTTP load failed (error code: -1004 [1:61])
2018-04-29 16:31:01.842820+0200 [2864:1179134] NSURLConnection finished with error - code -1004
2018-04-29 16:31:01.852891+0200 [2864:1178834] webView:didFailLoadWithError - -1004: Could not connect to the server.