Hey folks,
I have an issue, I was working on a django rest API and which was previously consumed on a web page, so it was easy for me to setup the CORS. But for some days we have a mobile app and I'm a little bit thinking of how to make this secure.
Am I to still use CORS, if yes, what is the mobile app IP address, if no, what am I to use for that purpose.
Note:
CORS_ALLOW_ALL_ORIGINS = Trueis not an option, this makes the app vulnerable. Or is there another way to secure it...?
I ventured into customizing the App headers but yet it is somehow not working as well.
Lastly, I will be glad to know if the technology of the app influences the CORS policies as well.