I don’t believe the CORS issue you’re seeing is related to the query params used for searching products by title. This sounds like a general issue getting started with the API.
For what it’s worth, you need to call the JSON API from your registered application… by which I mean your registered, authenticated server needs to make the call to the Shopify server. Not the browser. (I mention this because you said you’re trying to use Ajax.)