Wonder if anybody could help. I have been able to log in using a android mobile app with capacitor. I can return user name etc… from the same api action.
When I try to run any other api actions I get unauthorised response. I have got my security provider set to set to secure and samesite = none.
On the mobile app I have the credentials ticked on the api actions.
Then I am using Capacitor and calling this API to login. This is successful. At the end of this API I get some user details which come through fine. When I check though no cookie is set.
I have ran another API that doesn’t need you to be logged in to view and this is working fine so I think it’s something to do with the cookie not being set but I am really not sure. I have tried adding this to the config but with no luck.
I am running the mobile app on Android Studio. If I switch over to Cordova everything works okay. Any help would be brilliant I’ve been going round in circles on it for a few days but it’s all over my head.
Just wondering @Teodor is this possible in Wappler at the moment using Capacitor (Cordova works okay) to set cookies without adding lots of manual code? Or is there a way around using Capacitor for API actions behind a security provider / restrict?
I have been looking further and on my site the cookie is saying samesite=strict. I have set the samesite to none (see below). I have redeployed to DigitalOcean numerous times. Is this correct or could this be the problem?