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 SetAccessControlHeaders ¶
func SetAccessControlHeaders(w http.ResponseWriter, r *http.Request) bool
Fungsi untuk mengatur header CORS
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.