open-pay / openpay-js

Openpay Javascript bindings
Apache License 2.0
24 stars 28 forks source link

InvalidStateError in Internet Explorer when running on localhost #1

Closed corsairmarks closed 10 years ago

corsairmarks commented 10 years ago

The order of operations when setting up the XMLHttpRequest results in an InvalidStateError. The withCredentials flag should be set after the request is opened.

This issue only occurs when connecting to a server running on the local machine.