Skip to content

Add lint rule to disallow usages of window.fetch or other HTTP APIs #57151

Open

Description

In the Kibana Platform, we have a centralized HTTP client exposed on the browser side for making requests to the Kibana backend (core.http.fetch). This client is configured with some global interceptors for handling things like session timeouts and unauthorized responses.

We should add a lint rule to make sure plugins are using this centralized HTTP fetch so that these important interceptors are not bypassed by accident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Feature:New PlatformTeam:CoreCore services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions