dymosoftware / DCD-SDK-Sample

DYMO Connect SDK Samples
Other
60 stars 27 forks source link

CORS error when used in Angular #31

Open MerlijnKerklaan opened 3 years ago

MerlijnKerklaan commented 3 years ago

When I try to use the connect framework within an Angular application I get alot of CORS errors and I cannot get the framework to work.

I've included within the index.html and within the component I call the code below:

public ngOnInit(): void { dymo.label.framework.init(); dymo.label.framework.checkEnvironment(); console.log(dymo.label.framework.getPrinters()); }

See CORS errors below. Is there a way to use a custom http client for the communication? Or any other way to get this to work in an Angular application?

image