Skip to content

api-methods remove content header to prevent preflight

Harpo requested to merge hr/remove-custom-headers into master

Remove setting of custom content-type header in APIMethods. This header is not actually needed by our API and causes preflight checks for nearly every query (because of unique query parameters). This reduces network activity by about half. Also add a couple function type definitions used for mocking in later PRs.

Merge request reports