Link to home
Start Free TrialLog in
Avatar of digitalwise
digitalwise

asked on

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?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

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.
Avatar of digitalwise
digitalwise

ASKER

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?
SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial