-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Constance
authored
Sep 10, 2020
1 parent
33bc443
commit f56fcb3
Showing
3 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters