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:
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
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.