Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Request in batch at position 0 contains invalid header 'authorization'" when using OpenUI5/SAPUI5 with batch enabled #84

Open
gregorwolf opened this issue Jun 6, 2020 · 0 comments

Comments

@gregorwolf
Copy link
Contributor

Hello CAP Team,

in my project cap-azure-ad-b2c I've now also created a OpenUI5 frontend. Unfortunately I had to disable batch processing in MainView.controller.js#L59 because otherwise I get the error:

Request in batch at position 0 contains invalid header 'authorization'

for the requests. It is the default behaviour of OpenUI5/SAPUI5 to send all headers that where defined when creating the model not only in the main $batch request header, but also in every header for the $batch request payload.

Maybe there is also a solution in OpenUI5/SAPUI5.

Best regards
Gregor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant