I want to make a post request in Angular using the http client against the /self-service/settings/browser flow. However, I get the undocumented error "405 Method Not Allowed". Can anyone help me further on what the error could be?
I am using Ory Kratos self hosted in Docker container (oryd/kratos:v0.13.0)
const headers = new HttpHeaders({
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-CSRF-Token': tokenGroup.attributes.value
});
this.httpClient.post(environment.kratosConfiguration.basePath + '/self-service/settings/browser?flow=' + this.flow.id, {
method: 'profile',
traits: {
email: "[email protected]",
name: {
first: "M",
last: "M",
}
}
}, {withCredentials: true, headers}).subscribe({
next: (data) => {
console.log(data)
},
error: (err) => {
console.log(err)
}
});