Hi there,
I am not sure if this is the right place, but I have a question about the data export modules in views.
For our project, we tried to generate data export in an excel format for users with a specific role. For this, we use the xls_serialization, which in turn uses Drupals REST api with the default http authentication.
For the most part, this works great, but if an unauthorized user attempts to use the link directly, the browser does return a 403-status code, but the browsers also attempts to display the binary stream as text (after saving using cURL it as .xls format opens as an empty excel file). Changing the display format to json results in an 403-code with {"message":""} as response.
I was wondering if it's possible to change this behavior to redirect these calls to the websites default 403 page or if there are alternative modules? We are not really expecting users to request these data exports from outside of the browser.