ios - NSURLProtectionSpace - Handling sub directories in the same host -
Is there any subdirectory to store when saving the security location in NSURLCredential
storage
Tried
- Sub-Closing
NSURLProtectionSpace
but no results to reach property. - 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
Post a Comment