Enable CORS for WebDev

I have a Web app that i am trying to make ajax calls to an ignition WebDev. These call are failing on the options call. These are in another domain, so need to enable the option replay and enable CORS to allow * orgins.

On Linux Ignition 8.0.15. How do i enable CORS allow * orgins, the other CORS related headers for all webdev call made?

I tried editing the web.xml file, but Ignition failed to start after copy paste of xml from another post. That post was related to an older version of Ignition. So guessing is not longer valid method.

There’s no blanket way to do it, but you can implement a doOptions header that returns the values you need. I’d recommend doing it in a project script, so you can just copy the call to that function into each Python handler you have.