Skip to content

apikey泄漏风险 #7

@xiaoti12

Description

@xiaoti12

目前VITE_ACCESS_PASSWORD、GEMINI_API_KEY等环境变量都是直接打包到前端的,可以直接从页面源码看到。如果网址泄露出去,可能会导致apikey泄露。

Image

Image

感觉可以通过vercel function代理一下api请求

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions