We are using Walmart Open APIs and getting CORS issue. For example, when attempting to call tending items API, we are getting the following response: (replacing API key, publisher ID and domain for security)
Access to XMLHttpRequest at 'https://api.walmartlabs.com/v1/trends?apiKey={api_key}&&publisherId={publisher_id}&format=json' from origin 'https://example.com' 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.
How do we whitelist our domain for cross origin ? Please advise.
Attempted to call the Walmart open API from javascript code on our website. Not sure how to resolve CORS issue.
Was expecting to get back list of trending items from Walmart APIs.