This endpoint "playfabapi.com/Catalog/SearchItems" will not work from browsers when using the "Search" parameter. It returns this error:
{ "code": 400, "status": "BadRequest", "error": "InvalidRequest", "errorCode": 1071, "errorMessage": "Invalid request Correlation Id: WHi73GdpWE6XTgaw6xsW3g.0", "errorDetails": { "MS-CV": [ "WHi73GdpWE6XTgaw6xsW3g.0" ] } }
The same request with the same body and the same authentication header will work correctly from something other than a browser (like postman or a node server).
After many hours of investigation, we noticed that the browser automatically adds this header to the POST request: "Accept-Language: en-US,en;q=0.5".
Only the Search parameter trips the error, so this will work: { "Store": { "AlternateId": { "Type": "FriendlyId", "Value": "someStore" } }, "OrderBy": "Title/NEUTRAL desc" }
But this won't: { "Search": "green", "Store": { "AlternateId": { "Type": "FriendlyId", "Value": "someStore" } }, "OrderBy": "Title/NEUTRAL desc" }
If I override it to "Accept-Language: en-US", it'll go through without errors.