ios - NSURLProtectionSpace - Handling sub directories in the same host -


Is there any subdirectory to store when saving the security location in NSURLCredential storage

Tried

  1. Sub-Closing NSURLProtectionSpace but no results to reach property.
  2. Retrieve the domain by adding the postfix to the host property and dividing the host's string. But the result repeats the same protection space in the NSURLCredentialStorage ;

Under the same host there must be a separate security location for two virtual domains.

Ex: To host hosts for a host without Postfix

, especially when looking for credentials, the domain must be checked.

In advance thanks

Someone has the same problem, here's the solution.

You can use the realm property in NSURLProtectionSpace for this purpose.

Reference:


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -