Hello, I’m trying to call my app’s API from a completely different application but I keep getting a 401 Unauthorized error. This is the code I’m using:
'Authorization': 'Bearer [my API key]',
myArray = response.data
I know it’s a 401 error because it shows in the console:
I have a feeling it’s because I’m not adding the headers properly but I’ve tried adding the headers in 100x different ways and still can’t get it to work. Anyone know the proper syntax here?