I developed a Spring Boot applications as backend service and for web/android i use Flutter.
The Android version from the Flutter App works fine, no errors nothing but the web version has an error if i try to make a http request
NotificationProvider (Sends the HTTPS requests) : https://pastes.dev/TNbKIu0C7P Spring Controller (Receives the HTTP requests): https://pastes.dev/vLnlafP8jO
On the App Start i send an /all
request with the token to get all notifications from the database
In the Android App i get the content from the database but in the web version i got this error: ClientException: XMLHttpRequest error., uri=https://localhost:8080/all?bearer=token
Solutions like
The Flutter Web app is already on a server (using Apache)
pubspec.yml -> https://pastes.dev/hWWF0aNYxN
I tried to make a simple http request to get the content from the database but i got on the web version from the app the error that i wrote above.