Skip to content

How can I hide api key when inspecting on network? #522

Open

Description

@minhokokocrunch

I didn't want to show api key for anyone who inspect the network on browser.
How can I hide it?

Activity

  1. eegli commented on Sep 29, 2021

    @eegli

    Generally, you don't need to. And you can't - since it's a client-side script. Just make sure that:

    1. Your key has the right restrictions applied, e.g. HTTP referrers. You can restrict the key to only work on specific domains. If someone tries to use your key outside of your domain, it will not work.
    2. Use different keys for different environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions