How To Do A Synchronous Xmlhttprequest In Chrome App?
Using the following code: var xhr = new XMLHttpRequest(); xhr.open('GET', url, false); Yields the following error: Uncaught InvalidAccessError: Failed to execute 'open' on 'XMLHtt
Solution 1:
Synchronous XMLHttpRequests
are disabled by default for Chrome apps.
Check this link to see all disabled web features and the workarounds. For this case:
Use async-only XMLHttpRequest: Getting Rid of Synchrounous XXRs.
Post a Comment for "How To Do A Synchronous Xmlhttprequest In Chrome App?"