Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Access-Control-Allow-Origin (CORS origin)

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello and Happy New Year to all the Joomlabamboo team ;)

I have a problem when I’m saving the template. I’m unable to save the modifications that I've done in the template administration, save operation remains frozen ("close" and "save a copy" buttons are still working).
After a search in the console of the browser I noticed that I have an error:



I've looked for this issue on the web here and here but I can’t understand what the problem is ... I tried to modify the .htacces file without success.

Can you help me and tell me how to solve this problem?

Thank you :)

quick.as/W1LGF1qk7
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
Last Edit: 7 years 3 months ago by Lorenzo.
The administrator has disabled public write access.
I'll check with Rob over the weekend or monday on this but I thinks its non www and www that is the problem

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hello Paul and thank you for your support :)

I’ve tried with
<IfModule mod_headers.c>
  <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
    Header set Access-Control-Allow-Origin "*"
  </FilesMatch>
</IfModule>
then with this
Header add Access-Control-Allow-Origin "*"
with this
Header add Access-Control-Allow-Origin “http://www.iorbita.net”
with this
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
... and finally with your answer I got an old rule that I put in another .htaccess file and it seems to work ;)
## Begin - Redirecting non-www to www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^iorbita.net [NC]
RewriteRule ^(.*)$ http://www.iorbita.net/$1 [L,R=301]
## End - Redirecting non-www to www

...thank you again!
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
ah thanks for the update

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers