We are trying to make cross domain AJAX call via POST. If we directly try to access bbb.com
from aaa.com
it will ask for credentials. Only after giving credentials will we be able to access bbb.com
. Now in the same way, when an AJAX call is made to a different domain, in this case bbb.com
I'm receiving a 403 forbidden error.
I tried adding the authorization header and now in the request header, I see the below headers but even after having authorization header I'm still having the issue.
Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Access-Control-Request-He... authenticationindicator,authorizationtoken
Access-Control-Request-Me... POST
Authorization Basic TG9uZG9uOkJiZ0JlbjE4NTk=
Cache-Control no-cache
Host aaa.com
Origin bbb.com
Pragma no-cache
Proxy-Connection keep-alive
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0
Does anyone know how we can solve the 403 forbidden issue?