0

wen i deploy my web service on server, its working good in Internet Explorer but not working in mozilla and chrome.
According to this link i add this header to my serveer

Access-Control-Allow-Origin: *

but still its not working.
then i got the solution and add another headers like:

Access-Control-Allow-Origin
Access-Control-Max-Age
Access-Control-Allow-Methods
Access-Control-Allow-Headers

then its working good in all browsers on my desktop, but when i try to this web service using android browser, its showing me undefined error.
now what can i do to solve this problem.
Help me.

Community
  • 1
  • 1
Rikin Thakkar
  • 1,268
  • 3
  • 13
  • 27
  • undefined what? The error will usually tell you which variable is undefined. If it is something from request scope check if that variable is named differently android – Germann Arlington Jul 20 '12 at 09:54
  • when i call service, if any error it fail to run then its call this function : function OnError(request, status, error) { alert(error); } – Rikin Thakkar Jul 21 '12 at 05:52

1 Answers1

0

Got the solution guys.
i have deployed service on server but was calling it by local server link..
by just giving right link got the output.. thanx guys.

Rikin Thakkar
  • 1,268
  • 3
  • 13
  • 27