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

Add Access-Control-Allow-Origin header to LocalServer module responses #215

Open
cbh6 opened this issue Dec 26, 2018 · 0 comments
Open

Add Access-Control-Allow-Origin header to LocalServer module responses #215

cbh6 opened this issue Dec 26, 2018 · 0 comments

Comments

@cbh6
Copy link

cbh6 commented Dec 26, 2018

Hi,
Is it possible to add Access-Control-Allow-Origin header to localServer responses ?

I'm trying to load images and videos from file system and take snapshots from them with html2canvas
https://github.com/niklasvh/html2canvas. But since files are served from localServer, I need them to be served with res.setHeader("Access-Control-Allow-Origin", "*");

Thanks in advance.

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

No branches or pull requests

1 participant