浏览代码

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

Romain Rigaux 9 年之前
父节点
当前提交
666b4df8cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: