I’m trying to make a Generic JSON to obtain some users from a REST API Endpoint. This Endpoint requires the apikey (which is stored in the dataSlot called ds_Apikey), When trying to send the Apikey by creating a custom HTTP headers like the following, the error return is The operation couldn’t be completed. (NSURLErrorDomain error -1012.).
if I manually insert the Apikey as as follows, there is no issue with it
Anyone has idea on how to obtain the data from dataSlots and inserting into the custom header?