Fixed – InvalidStateError: Failed to read the ‘responseText’ property from ‘XMLHttpRequest’: The value is only accessible if the object’s ‘responseType’ is ” or ‘text’ (was ‘arraybuffer’).


Recently, an error occurred when trying to download and zip files from within CRM's Web Resource. The error was related to a CORS issue, specifically the lack of an 'Access-Control-Allow-Origin' header on the requested resource. The issue was resolved by removing a forward slash at the end of the URL specified in the Allowed origins. This fixed the problem because Azure Blob Storage CORS rules require exact matching for allowed origins.


Article 14m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time