I have a spring REST api running locally on my computer. I would like to consume this api for android development.
Here is my get request:
public stati
SOLVED if anyone is interested:
I managed to fix this issue by extending the class my original sendGet(final String url)
was in as follows HttpClientUsage extends AsyncTask
more information and a tutorial can be found here: AsyncTask tutorial
I then had to configure my CORS settings on my local REST API as follows:
cors:
allowed-origins: "*"
allowed-methods: GET, PUT, POST, DELETE, OPTIONS
allowed-headers: "*"
exposed-headers:
allow-credentials: true
max-age: 1800
Thank you all for your help, it is much appreciated.