dymosoftware / dymo-connect-framework

DYMO Connect Framework for Javascript.
Other
88 stars 54 forks source link

CORS errors in Firefox #19

Open joeadcock opened 3 years ago

joeadcock commented 3 years ago

When dymo.label.framework.init(); is called from Firefox, it is getting the CORS error below, which prevents label printing.

Firefox 89.0 (64-bit)

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://127.0.0.1:41960/DYMO/DLS/Printing/StatusConnected. (Reason: CORS request did not succeed).
0xE1 commented 3 years ago

Is it on DYMO Label Software (DLS) or DYMO Connect Software (DCD)? I have same issue with DCD on Chrome but no issues with DLS, the error is on Service Side "No 'Access-Control-Allow-Origin' header is present on the requested resource."

joeadcock commented 3 years ago

This error was from the dymo-connect-framework using the DYMO Connect Web Service. I know the README says it should be, but is this dymo-connect-framework actually compatible with DYMO Label Software? It didn't seem to work when I tried it before. Maybe it only works with certain versions?

uzdeveloper1 commented 2 years ago

how can this be fixed ?

timint commented 2 years ago

The cause of the issue is mentioned here. We need a fix for DYMO Connect. https://github.com/dymosoftware/dymo-connect-framework/issues/30#issuecomment-1012600893