The following headers may occur in responses from the Bing Image Search API.
X-MSEdge-ClientID: The unique ID that Bing has assigned to the user
BingAPIs-Market: The market that was used to fulfill the request
BingAPIs-TraceId: The log entry on the Bing API server for this request (for support)
It is particularly important to persist the client ID and return it with subsequent requests. When you do this, the search will use past context in ranking search results and also provide a consistent user experience.
However, when you call the Bing Image Search API from JavaScript, your browser's built-in security features (CORS) might prevent you from accessing the values of these headers.
To gain access to the headers, you can make the Bing Image Search API request through a CORS proxy. The response from such a proxy has an Access-Control-Expose-Headers header that whitelists response headers and makes them available to JavaScript.
The steps to install the same are available at the link below:
Source: Azure Documentation