List of Organization - working from postman, same Auth Token gives 403 forbidden error #24444
-
List of Organization is working and showing me list of organziation in Postman, when i use the same token in code i get an error 403 forbidden. Here is the code: async GetOrganizations4Login(login: string) { const options = let post_req = await https.request (options, (res: any) => { } catch (ex) { I tried putting the word “Bearer” and without anything in front of Token, but everytime i get 403, same is working from Postman. What am i missing? Appriciate your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the issue! When i used ‘request’ library i saw the whole error string, which told me it needs a user-agent in header. Once I added a user-agent header got everything working fine. HTH |
Beta Was this translation helpful? Give feedback.
Found the issue! When i used ‘request’ library i saw the whole error string, which told me it needs a user-agent in header.
Once I added a user-agent header got everything working fine.
HTH