Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

less and CORS #1945

Closed
portfolio-systems opened this issue Apr 2, 2014 · 2 comments
Closed

less and CORS #1945

portfolio-systems opened this issue Apr 2, 2014 · 2 comments

Comments

@portfolio-systems
Copy link

Hi

I've been using less very successfully for some time now with no issues.

However, a new dev environment mandates a back end server that has all the devel stuff being accessed via a reverse proxy. So the address http://server goes to a port 80 listener (Apache) in the normal way, and http://devel.server is redirected to http://server:81, all of which is completely hidden from the normal user.

I can now no longer make dynamic adjustments to the less environment using sheets.push() and refreshStyles() etc as your internal ajax call falls over because of the same origin policy enforced by the browser.

How can I configure LESS to send CORS type headers to avoid this issue ??

Thanks for a great product, hope you can help

Regards

Ron Yuen

@lukeapage
Copy link
Member

Can you look at browser.js and make a suggestion? Would it make sense to be able to replace the get file method? Its often asked for. Before you make a pull request, this is already a goal of 2.0.. see the 2.0 pull request.
I don't know enough about cors to be able to suggest how we should go about fixing.

@jonschlinkert jonschlinkert added this to the 2.0.0 milestone Aug 27, 2014
@lukeapage
Copy link
Member

as documented on lesscss.org you can now add a plugin that implements your own file manager and then you get full control if you need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants