I solved the CORS issue with a workaround. I was not able to figure it out from the javascript.
Instead, I made a "proxy" call via the REST API in the ProvIntegratorController.
I added a new method in 'ProvIntegratorController.java' called 'getData'. This method simply sends a GET request to the request parameter 'queryURL' returns the result.
I make this call in the 'getData.js' I'm not sure how to exactly parse the output.
I solved the CORS issue with a workaround. I was not able to figure it out from the javascript. Instead, I made a "proxy" call via the REST API in the ProvIntegratorController. I added a new method in 'ProvIntegratorController.java' called 'getData'. This method simply sends a GET request to the request parameter 'queryURL' returns the result.
I make this call in the 'getData.js' I'm not sure how to exactly parse the output.