Resource icon

Audentio ADStyler + CDN


Well-known member
MattW submitted a new resource:

Audentio ADStyler + CDN - Make it work with a CDN

As requested by @Audentio

When using the AD Styler with a CDN, you will probably find that is won't load correctly.
If you inspect the error you are getting, it will be due to a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error, as shown below.

View attachment 70307

To fix it, you need to specifically add this header. How to do so will depend on your web server software.

nginx (on your /js/ folder location in the site config)
location /js/ {...

Read more about this resource...


Active member
I tried it on mine and it didn't work (my path is /xen/js/) so I don't know if I set it wrong or if MaxCDN strips those things out. I am on NGINX

What I had to do was comment out the CDN stuff in my config.php for the Javascript.

My entry looked like this...

location /xen/js/ {
add_header Access-Control-Allow-Origin;