config

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Origins = []string{
	"http://localhost:8080",
	"http://localhost:5173",
	"http://127.0.0.1:5500",
	"http://127.0.0.1:5501",
	"http://127.0.0.1:5503",
	"http://localhost:3000",
	"https://barokah-ai.vercel.app",
}

Daftar origins yang diizinkan

Functions

func GetEnv

func GetEnv(envName string) string

func SetAccessControlHeaders

func SetAccessControlHeaders(w http.ResponseWriter, r *http.Request) bool

Fungsi untuk mengatur header CORS

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL