Advanced Search 404, but standard Search works fine?


Here’s my code, if I change /advanced-search/ to /search/ then I can connect to the API fine, but as soon as I change it back to /advanced-search/ I get a 404 error.

Access to fetch at ‘’ from origin ‘MY-DOMAIN’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

<script type="text/javascript">

var url = '';

var headers = new Headers({
  Authorization: "Basic " + btoa("APIKEY"),
  "Content-Type": "text/json",

var obj = {
  mode: "cors",
  method: "GET",
  cache: "no-cache",
  headers: headers,

fetch(url, obj)
  .then((resp) => resp.json())
  .then((data) => console.log(data))
  .catch(function(err) {

Also, the domains I’m using have been added to the javascript domains for the application.

Any help getting to the bottom of this would be greatly appreciated!



Having delved further into this and spoken to one of our developers and I’m informed:
“They’re not sending the proper CORS header for the 404 when you try to advanced search. You need to contact them about that.”

Hopefully this is something you can help with