I am using Bricks 1.11 with BricksExtras (1.5.2 beta). I have a blog section that has a “load more” button. The button has an interaction on it, triggered by a click, which will call the “load more (Query loop)” action on the related query.
This setup works well with Chrome, but on Safari it throws a 401 error on the JS console. The same happens with a filter on that query (using a search bar). Chrome works, Safari does not.
No, I am not using any blockers. I have also disabled the standard content blocker (in settings) for Safari. Safari is not my standard browser, Chrome is. There I have blockers (uBlock) but no issues. The same issue happens on other safari browsers as well (no extensions, except for 1Password - which I also disabled, without a change).
I am a little out of ideas here.
You can have a look at Blog – WIP EBTC ORG yourself. The load more button is at the bottom.
So, this is not a Bricks issue, but rather a WP issue. Something on my site restricts the REST API to authenticated users only. I need to find that. In Chrome I am always logged in … that’s why it works there … sorry to have wasted your valuable time. But maybe someone will profit from that also.
Btw, whoever has the same issue, check the nextwork tab and RESPONSE massage. This will give you better clues ;).
All right!
Usually, security or optimization plugins offer settings to block the API calls for non-logged in users. It may also be possible to set this at server level. If none of your plugins are responsible for this, contact your hoster.
I have found this in the ASE plugin and disabled it. Now it works. I was wondering whether this would be an issue at all if you change the Bricks settings to use Ajax instead of the Rest Api?