Browse Source

HUE-5135 [metadata] Prevent CSRF error when calling the search API

Romain Rigaux 9 years ago
parent
commit
666b4df8cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/metadata/src/metadata/navigator_client.py

+ 1 - 1
desktop/libs/metadata/src/metadata/navigator_client.py

@@ -181,7 +181,7 @@ class NavigatorApi(object):
 
       data = json.dumps(body)
       LOG.info(data)
-      response = self._root.post('interactive/entities?limit=%(limit)s&offset=%(offset)s' % pagination, data=data, contenttype=_JSON_CONTENT_TYPE)
+      response = self._root.post('interactive/entities?limit=%(limit)s&offset=%(offset)s' % pagination, data=data, contenttype=_JSON_CONTENT_TYPE, clear_cookies=True)
 
       return response
     except RestException: