Advanced Search error

Bauer

Well-Known Member
When I click the Advanced Search link in a list I get this error in the Chrome javascript console - and the popup is blank.

XMLHttpRequest cannot load https://www.mydomain.com/index.php?...d6a9e13d2721654241&listref=137_com_fabrik_137. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://mydomain.com' is therefore not allowed access.

I found that if I remove the 'https://www.mydomain.com/" part from the <a href then it works fine.

I'm not sure if this is related to using the secure https protocal - but everything else seems to work ok and I've never seen that error before.
 
Are you loading the page from www.yourdomain.com or yourdomain.com?

The problem seems to be that the page is being loaded with one, and the advanced search is using another. Which is causing cross domain access problems, as they are not considered to be the same. We prepend the advanced search URL with COM_FABRIK_LIVESITE, which is defined as JURI::root(), which is built either from your "live_site" in the J! config, or from the page URI.

So this situation usually happens either when you have defined livesite as yourdomain.com, and are accessing the page as www.yourdomain.com, or vice versa.

If you haven't set a livesite in your J! config ... I dunno ...

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top