kibana/x-pack/plugins/enterprise_search/common
Constance f56fcb3055
[Enterprise Search] Update shared API request handler (#77112)
* Add user auth check for /ent/select redirects

- Recent Enterprise Search CSRF changes have made it so redirects can occur to /ent/select and not just /login

* Fix request.query typing

- API endpoints passing in custom request.query params were seeing {} type errors - this change works around them

* Add Accept and Content-Type JSON headers to Enterprise Search requests

- Without the Accept header, Enterprise Search APIs will kick back a CSRF error
- Without the Content-Type header, APIs will not load JSON bodies as parameters per Ruby on Rails docs
2020-09-09 20:20:20 -07:00
..
__mocks__ [Enterprise Search] Update config data endpoint to v2 (#76970) 2020-09-09 10:01:28 -07:00
strip_trailing_slash [Enterprise Search] Convert our public_url route to config_data and collect initialAppData (#75616) 2020-08-21 09:02:15 -07:00
types [Enterprise Search] Add Overview landing page/plugin (#76734) 2020-09-09 12:53:51 -07:00
constants.ts [Enterprise Search] Update shared API request handler (#77112) 2020-09-09 20:20:20 -07:00
version.ts