I'm trying out Camunda with authentication filter. The same request works fine with basic auth from postman, but when i send it from the UI I get 403 error for the OPTIONS request and the POST request fails.
PS: I have my cors filter set up, it works fine if I disable the authentication filter.
This is the request in postman
and this is the request in my code
await axios.post(`${process.env.REACT_APP_API}/process-definition/key/${process.env.REACT_APP_PROCESS}/start`, {}, {
headers: { 'Authorization':
{username: "demo",
password: "demo"}
}
})
I tried also this syntax:
await axios.post(`${process.env.REACT_APP_API}/process-definition/key/${process.env.REACT_APP_PROCESS}/start`, {}, {
auth:
{username: "demo",
password: "demo"}
})
question from:
https://stackoverflow.com/questions/65921007/camunda-403-error-when-rest-api-request-sent-from-ui 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…