Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    May 2009
    Posts
    18
    Vote Rating
    0
    ridasfa1 is on a distinguished road

      0  

    Default Error: XMLHttpRequest cannot load

    Error: XMLHttpRequest cannot load


    Hi
    I am using Ext.Ajax.request({...}) method,
    in its url config property i specified url like:
    url: 'http://localhost:7878/eric-test/main/receipt/items', and it works fine

    but when i replace 'localhost' with my ip address i see this error in the console:

    XMLHttpRequest cannot load http://192.168.2.212:7878/eric-test/...ceipt/receipts. Origin http://localhost:7878 is not allowed by Access-Control-Allow-Origin.

    what might be the error
    rida

  2. #2
    Sencha User
    Join Date
    May 2009
    Posts
    18
    Vote Rating
    0
    ridasfa1 is on a distinguished road

      0  

    Default


    i solved like this:
    first modified my url to look like: url: '/eric-test/main/receipt/item
    that is i removed the server location {ipAddress : portNumber} where the '/' in the begining refers
    that we are still in same domain

    Second i added
    method: 'GET' config property to Ext.Ajax.request({}) which was missing
    rida

  3. #3
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    @ridasfa1--

    To qualify as a 'same-origin' request, the following conditions must be met:

    The protocol (https://) must be the same as origin (page load)
    The port must also be the same as origin.
    The HOST (DNS-resolved or implicit IP) must also be the same as origin.

    Run with it.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


Thread Participants: 1