Fixes using the local file system in special browser mode (#2597)
Fixes using the local file system in special browser mode (#2597)

Solves the issue where the browser returns status code 0 on XHR requests file requests when the browser is using '--allow-file-access-from-file' flag.

See https://cmatskas.com/interacting-with-local-data-files-using-chrome/

This is needed in special cases such as using CefSharp which embeds a Chromium browser into a C# app under special settings

Co-authored-by: Steven Yau <c4e01c0f87a9d4bf034f0f681553ace272d52b0f@snaphcat.com>
playcanvas/engine,MicroWorldwide/PlayCanvas,playcanvas/engine,MicroWorldwide/PlayCanvas