Cross Domain CSS

We are building a new project for a client and they want us to use their WP template (the new project is not in WP).   So we were just calling their CSS files and generating the templates that way.   We are getting the errors:

XMLHttpRequest cannot load https://www.XXX.org/wp-content/plugins/ultimate-wp-query-search-filter/themes/default.css?ver=all. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://XXX.XXX.org' is therefore not allowed access.

Open in new window


What sort of changes have to be made on the WP side to allow us to call those?
digitalwiseAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
An 'Access-Control-Allow-Origin' header has to be generated by the server.  An easier method is to just copy the CSS files to your project.
digitalwiseAuthor Commented:
The client really wants us to pull from them so that if they make changes they don't have to remember to tell us to pull a new version.   Do you have some guidance on how to do that with WP?
Jason C. LevineDon't talk to me.Commented:
It's not a WordPress issue...it's a server security issue to prevent XSS attacks.
Dave BaldwinFixer of ProblemsCommented:
As I said, this is done by the server, not by the WP code.  https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.