Modeled API sometimes redirects after completing a request

If you have a modeled API endpoint (type Origam.Schema.WorkflowModel.WorkflowPage) and send a request that contains a referrer in the hearer, you will get redirected to the root after the request succeeds.

This is confusing and creates unnecessary traffic.

For example:

POST {{baseUrl}}/api/private/some-object/{{Id}}/create
Content-Type: application/json
Referer: https://localhost:5173/project/
Cookie: {{cookie}}

{
  "Title": "Test object",
  "Description": "Test object Description"
}

If the header Referer: https://localhost:5173/project/ is included in the request, a redirect follows. If it is not included, the request return 200, no redirect.