Strapi running on node 12
In strapi I have a collection-type called:
Display name: qty
I can run a get request like so:
const {data} = await axios
.get(‘http://myip/qties’, {
headers: {
Authorization:
Bearer ${jwtResp.data.jwt}
}
})
However when I try to post like so:
const {data} = await axios
.post(‘http://myip/qties’, {
data: {
quantity: 5,
discount: 5,
},
headers: {
Authorization:
Bearer ${jwtResp.data.jwt}
}
})
I get a 403 error
The fields are Quantity and Discount. Any ideas what I’m doing wrong?