Support

Admin Tools

#23179 CORS block issue

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Friday, 28 August 2015 00:27 CDT

grantbroadcasters
 When I was setting up my .htaccess file I enabled the 'Cross-Origin Resource Sharing (CORS)' option and I got a 500 error. After removing the code my site worked again. After checking with our hosting provider sending the the code block the pointed out the end tag is incorrect saying 'You should not include the module name in the closing </IfModule>'.

Based on this information the correct block should be
## Cross-Origin Resource Sharing (CORS) -- See http://enable-cors.org/
<IfModule mod_headers.c>
	Header always set Access-Control-Allow-Origin "*"
	Header always set Timing-Allow-Origin "*"
</IfModule>


Original black
## Cross-Origin Resource Sharing (CORS) -- See http://enable-cors.org/
<IfModule mod_headers.c>
	Header always set Access-Control-Allow-Origin "*"
	Header always set Timing-Allow-Origin "*"
</IfModule mod_headers.c>

nicholas
Akeeba Staff
Manager
Your host is absolutely correct. I don't know how that mod_headers.c got in there in the closing tag but it's definitely a typo. Thank you for the heads up!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!