app1) essentially means the user can access the api (app2) without any issue. However, my frontend is dynamic, so when a delete button or such is pressed, it will send out a request to the api. Whenever this happens, the api responds with its login page, as to make the user reauthenticate, even though the user is authenticated already. When opening the same link to the api in a tab manually, no reauthentication is necessary, and the request gets fulfilled.