The error means that the New School website doesn't allow us to connect over AJAX (which is common on regular, non-API websites). But it also means that the connection works, so we can proceed updating our code to work with the Cooper Hewitt's API.
Using the Cooper Hewitt API
Let's go back to the Cooper Hewitt's API homepage. At the top, it says that "API requests are made by passing one or more query parameters to https://api.collection.cooperhewitt.org/rest/."
First, let's change our URL in the AJAX call to that url.
The two remaining pieces of information required by the API are the method we're calling and our access token. The method we're all using is called cooperhewitt.search.objects (you can see all the possible methods here). We pass this information in a parameter to the main AJAX call named data. And we can format this data as an Object, like so: