My website has two domain names that points to the same folder on my server.
I've implemented a module that uses AJAX and it works perfectly when I acces my website through www.domain1.com but fails when I access it through www.domain2.com.
I've looked around and I see a lot of post about cross domain AJAX and jsonp but I was wondering if there would be another option in my case.
Since it has technically the same origin, is there a way around this ?