Results 1 to 2 of 2

Thread: JSESSIONID being mangled on ajax call with CORS

  1. #1

    Default JSESSIONID being mangled on ajax call with CORS

    I have an application that access a server by REST:
    http://localhost:1841/ => http://localhost:8080/goraexplorer/

    When I request /login, I get a JSESSIONID in the response.

    Then I request /profile, and the client sends a different JSESSIONID!.

    If I do this same thing all in http://localhost:8080/goraexplorer/ (not depending on CORS), everything works.

    The login is made with a form.submit(), and the profile is get with a call to model.load():


    proxy: {
    type: 'rest',
    url: 'http://localhost:8080/goraexplorer/users/profile',
    appendId: false,
    withCredentials: true
    }

    This is the login preflight:
    login-preflight.jpg
    This is the login, where you can see setting JSESSIONID=8B1CF... :
    login.jpg

    This is the profile preflight:
    profile-preflight.jpg


    And this is the profile, where you can see it sends a wrong (don't know where it gets from) JSESSIONID=992610...:
    profile.jpg


    ExtJS version 6.0.0.640

    Any clue? Thanks!!

  2. #2

    Default

    Ignore this question. It seems it is a mix of a miscofiguration + some bug in Spring 4.2 with CORS.

    https://github.com/spring-projects/s...ot/issues/5834

Similar Threads

  1. Ext.Ajax.request CORS not working
    By marco.napetti in forum Ext 5: Q&A
    Replies: 5
    Last Post: 17 Oct 2014, 12:01 AM
  2. [FIXED] Ext.Ajax.cors lingers in IE <= 9
    By ZachG in forum Ext 5: Bugs
    Replies: 1
    Last Post: 10 Jun 2014, 8:18 AM
  3. Ajax & CORS
    By Frey89 in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 16 May 2014, 8:31 AM
  4. [CLOSED] Ext.Ajax.cors breaks IE
    By lenny87 in forum Ext:Bugs
    Replies: 2
    Last Post: 12 Dec 2012, 2:18 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •