Replies: 2 comments
-
Hi... uhhh, I don't think this is a PostgREST issue, since it's built using Haskell and not Java. That means it may be a problem with your Android application. I found a similar issue here that could help you: axios/axios#5271 Edit: From the link above, it could be because it expects an |
Beta Was this translation helpful? Give feedback.
0 replies
-
WOW !!!
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
For purpose tests, I just made a small Web app using PHP. I access PostgREST thru curl commands using an SSL certificate + JWT.
I wrote the exact same app in pure HTML + JS + CSS. I can run "fetch" commands with GET, HEAD, PUT, PATCH, POST and DELETE methods. No need for a certificate because I added my calling URL in the "server-cors-allowed-origins" parameter.
Then I tried to generate a mobile app by including this app within a Capacitor project. On my phone, the first page is displayed without error. So far, so good.
But... when I run any fetch request, I get this error message :
8<------------------------------------------------------------
Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
8<------------------------------------------------------------
Question is : where / how do I add the certificate in order to make the generated Java run without error ?
I've read tons of things about CORS and also asked ChatGPT, but got no useful answer.
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions