I am trying to download spreadhseets from a users google drive. I am encountering a CORS issue.
Reading this:
https://github.com/google/google-api-javascript-client/issues/47
I am trying to make a GET request on the server side. I tried using restTemplate.exchange but I am not sure what format my response should be in. Basically completely lost.
Is there a way to make the GET to pull the file and pass back to my front end?
I keep getting this error for whatever format I try:
org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [interface java.sql.Blob] and content type [application/vnd.openxmlformats-officedocument.spreadsheetml.sheet]
Any help greatly appreciated.