Requesting Documents from filing history

using the following:-
$(document).ready(function () {
var settings = {
“dataType”: “json”,
“async”: true,
“crossDomain”: true,
“url”: “”,
“method”: “GET”,
“headers”: {
“Accept”: “application/pdf”,
“authorization”: "Basic "
$.ajax(settings).done(function (response) {
alert ("IT WORKED " + response);
// JavaScript Document

yet i get the following:-

XMLHttpRequest cannot load Redirect from ‘’ to ‘…e1%2B5qP%2Bfkon85OT9qCW%2FwmgUgO5bNJlKme9lzNxIhJT53j3Cl2KavCso1%2FSeywU%3D’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.(my domain).com’ is therefore not allowed

there seems to be no way of stopping ajax following the redirect link…

Don’t think AJAX can stop this as per the spec. I don’t know how to work round the CORS offhand (we do processing back-end so it’s not an issue). Maybe start here:

Good luck.