Closed indolering closed 9 years ago
You may have better luck asking this question on Stack Overflow. This issue board is for the site itself.
FWIW, the problem went away when it was deployed in the field. This probably has to do with Apache's basic auth protection of directories.
I recently tried to create an Apache 2.2 config that would allow credentialed requests. It turns out there are some issues with browsers sending credentials with a preflight request, so I came up with the following requirements:
Access-Control-Allow-Origin
cannot be a wildcard, it must mirror the origin.Access-Control-Allow-Credentials
must be set totrue
.Access-Control-Allow-Methods
must includeOPTIONS
.OPTIONS
) with a 200.The following should work for Apache 2.2+
However, I cannot get Firefox to send a cross domain Ajax request with basic auth. It just refuses to send a preflight. I will try again without jQuery, but I don't understand why jQuery would cause issues and I consider jQuery support a requirement.
Any advice?