Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

IE 11 aborts Observable.ajax PUT cross-domain request #1529

Open
MartinKristof opened this issue Nov 30, 2017 · 1 comment
Open

IE 11 aborts Observable.ajax PUT cross-domain request #1529

MartinKristof opened this issue Nov 30, 2017 · 1 comment

Comments

@MartinKristof
Copy link

Hi,
IE 11 ver. 11.0.9600.18837 on Windows Server 2008 R2 Standard aborts PUT Ajax Observable request with cross-domain:

put$(url, body, headers = { 'Content-Type': 'application/json', 'X-Requested-With': 'XMLHttpRequest') {
        return Observable.ajax({ url, body, headers, method: 'PUT', responseType: 'json', crossDomain: true });
    }

snimek obrazovky 2017-11-30 v 14 33 16

Chrome, FF works ok.

Epic:

 action$.ofType(SAVE_STUDENT)
        .filter(() => isUserLoggedIn(getState().userState))
        .switchMap(() => api.saveStudent$(prepareStudentToSave(getState()), getState().userState.apiKey)
            .flatMap(() => [
                studentSaved(),
                addFlashMessage(
                    {
                        message: 'xxx',                          
                    }
                ),
            ])
            .catch(curry(handleFormError$)(null, null, studentSavedWithError))
        );

Thank you for help.

@MartinKristof
Copy link
Author

Works ok, sorry, problem were in other code ->:
Observable.from() with any immutable structure throws error. I must convert eg. Immutable List to js with toJS() method. So this is a bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant