Hi @Shreyansh_Jain,
Can you explain a bit more about what you are trying to do, and why you need to disable CORS? I found an old discuss thread and GitHub issue and it looks like CORS support in production mode has been removed at least from version 7.6.