Thanks it was a late night but the second parameter isn’t my biggest concern I did add one though. Right now I can’t figure out why my api key isnt working in React. I’ve tried several variations of code it works in simple js as a node application but I can’t seem to make it work with React.
Preflight is the first request/response when dealing with cors. The server is suppose set headers for initializing the request and response conversation it’s about to have. The bing API is probably not understanding your initial request or it’s not hitting the right target.
Two questions:
Do you know how to check your XHR headers using the browser Dev Tools?
And is superagent a requirement for this project? JavaScript comes with a few XHR options, one being the Fetch API which I like a lot and is much simpler, IMO.