I’ve been trying to build an external web app that should be making use of dhis 2 data through the its’ web api endpoints. But when I try to access dhis web apis - even after including credentials for authentication (username:password bases64encoded) as value for the authorization request header, I’m getting a “response for preflight is invalid (redirect)”. (I’m using basic authentication). And when I monitor the network activity in chrome dev tool I came to discover that the preflight OPTION request method is also being redirected, which shouldn’t be the case.
I really need to get my app connect to dhis, I’m building it as part of the country’s Health Information System. I will greatly appreciate any assistance in how I can solve this issue, or any workable solution I can refer to. Thanks a lot.
I’ve been trying to build an external web app that should be making use of dhis 2 data through the its’ web api endpoints. But when I try to access dhis web apis - even after including credentials for authentication (username:password bases64encoded) as value for the authorization request header, I’m getting a “response for preflight is invalid (redirect)”. (I’m using basic authentication). And when I monitor the network activity in chrome dev tool I came to discover that the preflight OPTION request method is also being redirected, which shouldn’t be the case.
I really need to get my app connect to dhis, I’m building it as part of the country’s Health Information System. I will greatly appreciate any assistance in how I can solve this issue, or any workable solution I can refer to. Thanks a lot.
I’ve been trying to build an external web app that should be making use of dhis 2 data through the its’ web api endpoints. But when I try to access dhis web apis - even after including credentials for authentication (username:password bases64encoded) as value for the authorization request header, I’m getting a “response for preflight is invalid (redirect)”. (I’m using basic authentication). And when I monitor the network activity in chrome dev tool I came to discover that the preflight OPTION request method is also being redirected, which shouldn’t be the case.
I really need to get my app connect to dhis, I’m building it as part of the country’s Health Information System. I will greatly appreciate any assistance in how I can solve this issue, or any workable solution I can refer to. Thanks a lot.