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

Can't set CORS headers #36

Closed
slorber opened this issue Oct 25, 2016 · 2 comments
Closed

Can't set CORS headers #36

slorber opened this issue Oct 25, 2016 · 2 comments
Labels

Comments

@slorber
Copy link
Contributor

slorber commented Oct 25, 2016

I'm using list/ns to serve my single-page-appication assets (js/css...)

Unfortunatly, the index.html page of my SPA is not a static asset that is in the static deployment: it is a dynamic html page generated by my backend server which is hosted on another domain.

I'd like to set a CORS header, so that my index.html page, served from another domain, is able to load JS assets from the list/ns deployment.

It would be nice to have an option to set custom headers, and a shortcut --cors (like http-server) would also be convenient. Thanks ;)

@joeyvandijk
Copy link

The reference issue #37 contains the cors setting, but the current index.js is missing the execution code for the CORS option. Please copy & fix it, while apparantly some merge removed it from the code, so the CORS-option is currently non-existent.

Or am I missing something while cors is provided in the help section, but nothing is done with that flag.

@leo
Copy link
Contributor

leo commented Feb 10, 2017

--cors is now usable!

@leo leo closed this as completed Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants