ERR_BLOCKED_BY_RESPONSE error in joomla 4.0.2 Topic is solved

Discussion regarding Joomla! 4.x security issues.

Moderators: mandville, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
vladmor2012
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Sep 03, 2021 7:23 am

ERR_BLOCKED_BY_RESPONSE error in joomla 4.0.2

Post by vladmor2012 » Fri Sep 03, 2021 7:44 am

Hello!
The problem with the module "Wrapper" in joomla 4.0.2. Doesn't display the site's subdomain. Throws ERR_BLOCKED_BY_RESPONSE error.
How to get rid of this? This was not the case in joomla 3.10.0.
Sincerely, Vladimir.
Last edited by imanickam on Fri Sep 03, 2021 9:35 am, edited 1 time in total.
Reason: Changed RR_BLOCKED_BY_RESPONSE to ERR_BLOCKED_BY_RESPONSE

vladmor2012
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Sep 03, 2021 7:23 am

Re: ERR_BLOCKED_BY_RESPONSE error in joomla 4.0.2

Post by vladmor2012 » Sat Sep 04, 2021 5:43 am

The issue has been resolved. In the plugin "System - HTTP Headers" disabled "X-Frame-Options".
Found the answer on the forum: https://mb4.ru/en/forum/joomla/3578-upr ... mla-4.html.

vladmor2012
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Sep 03, 2021 7:23 am

Re: ERR_BLOCKED_BY_RESPONSE error in joomla 4.0.2

Post by vladmor2012 » Mon Sep 06, 2021 4:18 pm

Hello!
How can you solve the problem without disabling the "X-Frame-Options"? I would like to leave this protection. Tried adding in .htaccess: X-Frame-Options allow-from https://www.example.com/. Nothing works.
Sincerely, Vladimir.

shoulders
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Fri Oct 10, 2008 9:03 pm
Contact:

Re: ERR_BLOCKED_BY_RESPONSE error in joomla 4.0.2

Post by shoulders » Sat Dec 25, 2021 5:04 pm

Hi

ALLOW-FROM uri no longer works This is some example code that works you might be able to get doing what you want

Code: Select all

# Conditional X-Frame-Options for iFrame Embedding Control
<If "%{HTTP_REFERER} == 'https://www.sita.com/' || %{HTTP_REFERER} == 'https://www.siteb.com/'">
    <IfModule mod_headers.c>
        Header always unset X-Frame-Options
    </IfModule>
</If>
<Else>
    <IfModule mod_headers.c>
        Header always append X-Frame-Options SAMEORIGIN
    </IfModule>
</Else>
  • The Else section is optional.
  • The always variable is like CSS !important
  • Some plugins will enable X-Frame-Options SAMEORIGIN on all pages (Joomla 4 ?/ Wordpress W3C Total Cache) so in this case the Else statment is not needed
  • You could add other checks into If statements or use other Apache variables, you are not limited to the ones i have used and these statements can be nested.
  • This goes in your .htaccess :)
  • You dont have to disable any Joomla options for this to work.
Hope this helps

shoulders


Locked

Return to “Security in Joomla! 4.x”