Lua Script Preflight response

I am getting Preflight CORS Origin error while accessing the Study List data of Orthanc in OHIF viewer.

Is there any way to set CORS Headers in LUA Script ?

Ofcourse, I am aware of NGINX option to set CORS Headers, but looking for an alternative from ORTHANC inbuilt LUA SCRIPTING.

No, it is not possible to do that in Lua.