For a project I am researching postgREST API and applying it to a project being worked on. I simply wanna use the postgREST api in an ajax request from a SpringBoot web app. I am however getting this issue. According to postgREST docs, it will allow ajax requests from any domain. The springboot app is being run on localhost:8080.
var uri = "localhost:3000/book";
$.ajax({
method: "GET",
url: uri,
dataType: 'json',
success: createBook.showResult
})
The web app is a spring boot app that is using hibernate to persist objects to a postgSQL database and we have build it with CRUD repositories that work fine but our prof wants us to "research" postgREST and implement is partly.