yavuz
Well-known member
I recently spend time optimizing my server and my sites. One of the things I did was serving static content from another (cookieless) domain. I had a domain laying around and wanted to use it and did.
Most of the functionality was working as it is, until I installed the ul.x theme which has, for those who know, the ad styler. Unfortunately it requires the JavaScript loading from the main resource or needs some server modification. Mike @Audentio referred me to @MattW who although - unlike me - was using nginx, and kindly pointed me to the right direction, proving me his nginx solution:
From there on, I found many resources for this particular configuration but only were able to make one thing "partially" work by adding this code below into the sites .htaccess file:
While this helped the Ad Styler to open, you can't change anything, dropdowns are not working, can't select any color. Another problem occurred, another add-on @*******'s Modern Statistics stopped loading the messages & threads.
I'd appreciate if any server guru's out there could help me solve this problem. Any suggestions, help is appreciated! Thank you.
P.S: If you can make any sense of it, I saved two links to the resources:
php - enable cors in .htaccess - Stack Overflow
HTTP access control (CORS) - HTTP | MDN
Most of the functionality was working as it is, until I installed the ul.x theme which has, for those who know, the ad styler. Unfortunately it requires the JavaScript loading from the main resource or needs some server modification. Mike @Audentio referred me to @MattW who although - unlike me - was using nginx, and kindly pointed me to the right direction, proving me his nginx solution:
Code:
location /js/ {
add_header Access-Control-Allow-Origin http://z22se.co.uk;
}
From there on, I found many resources for this particular configuration but only were able to make one thing "partially" work by adding this code below into the sites .htaccess file:
PHP:
Header add Access-Control-Allow-Origin"*"
Header add Access-Control-Allow-Methods:"GET,POST,OPTIONS,DELETE,PUT"
While this helped the Ad Styler to open, you can't change anything, dropdowns are not working, can't select any color. Another problem occurred, another add-on @*******'s Modern Statistics stopped loading the messages & threads.
I'd appreciate if any server guru's out there could help me solve this problem. Any suggestions, help is appreciated! Thank you.
P.S: If you can make any sense of it, I saved two links to the resources:
php - enable cors in .htaccess - Stack Overflow
HTTP access control (CORS) - HTTP | MDN