Added corsheaders to settings
Activated middleware class for cors