XF 2.2 One thread is getting oops error - Preflight response is not successful - XMLHttpRequest cannot load ...due to access control checks

Mr Lucky

Well-known member
Page gets an Oops! We ran into some problems. Please try again later. More error details may be in the browser console. whenever clicking on contact form in footer, login/out, notifications, style chooser, post edit etc.

[Error] Preflight response is not successful. Status code: 400
[Error] XMLHttpRequest cannot load https://cafesaxophone.com/login/ due to access control checks.
[Error] Failed to load resource: Preflight response is not successful. Status code: 400 (login, line 0)

This is the page:

I've tried default style, disabling addons, different browsers, logging out (but can't on that page!) Console shows error but I have no idea what it's about.

Can anyone please help!

Last edited:
What I see when looking at the access logs, is that any overlay that would be generated is generating a 301 redirect, and that's why it's not being loaded (when viewed as logged in and as a guest).

All other parts of the site load the overlay correctly.
Fixed it:

caused by this in .htaccess

# if the query has amp it removes it
RewriteCond %{QUERY_STRING} amp
RewriteRule (.*) https://cafesaxophone.com/$1? [R=301,L]
Top Bottom