on 12-02-2021 2:40 PM
Hiya,
I've been trying without success today to add custom headers to a certain destination/ API call in my sap ui5 application router.
Below commnet is just one example of me trying different combinations of headers/ setting headers without success.
This really should be possible based on this git repo example too.
I know my app router is using this custom file because I put in a different response test and that worked fine.
What's the correct way to insert custom headers to each request? I did also try on the destination level but this didn't work either!
Many thanks,
Nathan Hand
You actually did everything right. Which version of the approuter are you using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I took a few days off this problem and came back to it today, it seems that the "^" doesn't work/ apply here so you need to use the full path.
After I changed the path to "/appname/api/" this worked fine as that's how my apps are calling the API as far as the app router is concerned.
Silly mistake but thanks for being a sounding board and helping me fully check into the problem.
User | Count |
---|---|
68 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.