vite-config-cookie-samesite
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

vite proxy config: Allow self-signed. Remove the Secure and SameSite flags from cookies.

========================

Usage

import RemoveCookieSameSite from 'vite-config-cookie-samesite';

const viteConfig = defineConfig(() => {
    return {
        server: {
            proxy: { ... RemoveCookieSameSite(env.VITE_API_URL) },
        },
    };
});

.env

# A slash before https indicates accessing through the vite proxy
VITE_API_URL = '/https://api.example.com'

# Without a slash, indicates direct access without using a proxy
# VITE_API_URL = 'https://api.example.com'

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i vite-config-cookie-samesite

      Weekly Downloads

      0

      Version

      1.0.5

      License

      MIT

      Unpacked Size

      1.91 kB

      Total Files

      5

      Last publish

      Collaborators

      • logaxn