Create CoreNetwork.plist
file and add the keys below:
Key | Type | Values |
---|---|---|
LOG_LEVEL |
String | NONE , BASIC , HEADERS or BODY . |
BASE_URL |
String | - |
TIMEOUT_INTERVAL_FOR_REQUEST |
Number | - |
TIMEOUT_INTERVAL_FOR_RESOURCE |
Number | - |
SSL_PINNING |
Array<Dictionary> | - |
Adapted from OWASP https://www.owasp.org/index.php/Certificate_and_Public_Key_Pinning#iOS
openssl s_client -servername api.spotify.com -connect api.spotify.com:443 | openssl x509 -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64