I am trying to create a simple project on android using chatGPT help. According to what it said, I can offload js heavy work into different process, to reduce the UI thread usage. But it seems I keep getting CORS when trying to create new Worker from local worker.js file. I tried the bot's recommendations to give it full url to the local file, or to load it with 'fetch', nothing helps so far.
I know it should work(as I have seen worker works locally same way on another projects). Maybe there's some new settings in recent android versions I need to give any permissions, but chatGPT isn't aware of? Thanks!
Tried some tips chatGPT gave me but nothing really helped.