JRR75
asked on
AJAX JQUERY POST 302 response
We have 2 different domain URL Rest endpoint, Any post to the URL www.firstdomain.com/getFees forwarded to www.seconddomain.com/getFees using .htaccess rewriterule.
If the post generated from HTTP Client .NET/JAVA objects works fine, but when I post the request through JQUERY AJAX POST method getting 302 response with page not found error. Any pointers to resolve this issue appreciated.
If the post generated from HTTP Client .NET/JAVA objects works fine, but when I post the request through JQUERY AJAX POST method getting 302 response with page not found error. Any pointers to resolve this issue appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The redirect should be handled by the browser - can you check if the sample I posted works for you in the browser you are using.
Have you tried in a different browser?
Have you tried in a different browser?
ASKER
Tried your sample in both Chrome and IE nothing happening.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes i can see your sample working. How to post the data to t1050.php?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
In fiddler i don't see the redirection from originating domain to a different domain, let me try with CORS/JASONP.
ASKER