403 response, You are not allowed to perform this action when trying to populate via api #725
Answered
by
iasisalomon
iasisalomon
asked this question in
Q&A
-
Using a Mocha/Chai env, I am trying to setup a TDD/BDD environment. When i send this curl from anywhere but the app, it works
below code does not seem to save the data on the mongodb besides being the same.
|
Beta Was this translation helpful? Give feedback.
Answered by
iasisalomon
Jul 7, 2022
Replies: 1 comment
-
Found the error i was adding bearer to the token to store it, but needed it pure for token and Cookie. bearer = 'Bearer ' + res.body.token; Code that actually works:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
denolfe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the error i was adding bearer to the token to store it, but needed it pure for token and Cookie.
bearer = 'Bearer ' + res.body.token;
Code that actually works: