I tried to hit the API using an ajax call. but it\'s throwing this Error (from origin \'http://127.0.0.1:8000\' has been blocked by CORS policy: Response to preflight reques