Support

Admin Tools

#37423 htaccess: CORS options are -1, 0, 2

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
3.10.10
PHP version
7.4.30
Admin Tools version
6.1.6

Latest post by tampe125 on Tuesday, 05 July 2022 10:46 CDT

goslingcools

Hi,

In the htaccess maker it looks like you can set Cross-Origin Resource Sharing (CORS) only to  -1, 0, 2. 

While your code looks for:

if ($config->cors == 1)   {...}

  I don't see these lines in my htaccess:   access-control-allow-origin: *   And that's what I am trying to accomplish.   Regards,   Gosling Cools

tampe125
Akeeba Staff

Hello,

thank you for the report! There was indeed a bug, I just updated the code.

Thanks again!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
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!