Enable CORS for sending XML to another Server

Hi,

we are trying to enable Cross-Origin Resource Sharing so we can send the created Model XML to our Python Server, that is using it in further steps.

Reason: CORS header ‘Access-Control-Allow-Origin’ missing.

How can we enable the Cross-Origin Resource Sharing?

Thank you

Hi,

CORS has to be enabled on the server, so there’s nothing you can do within bpmn.io libraries to make it work. Read more on CORS at Cross-Origin Resource Sharing (CORS) - HTTP | MDN