WebDev Require Authentication

Is there a way to setup a python resource to require authentication on a doPost method, but not on the doOptions method?

I am trying to get around the CORS issue and the preflight needs to perform a Options method without sending authorization credentials.


I know this is older but did you ever get an answer?

Not that I remember.

Iā€™m incredibly late to the party here, but the good news is that 8.0.7 will allow authentication to be set per method, which of course implies that you could not do this before.

The change should be on the nightly if you wanted to start taking advantage of it, otherwise December 20th is the target for 8.0.7 release.

1 Like

Yeah, the workaround was a pretty messy solution that involved hacking the Jetty configuration files included with Ignition, so looking forward to having proper support per-method.

1 Like