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:
What sort of changes have to be made on the WP side to allow us to call those?
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.
What sort of changes have to be made on the WP side to allow us to call those?
An 'Access-Control-Allow-Orig in' header has to be generated by the server. An easier method is to just copy the CSS files to your project.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.