BasicAuth
Controls how your API can be accessed from different domains.
Features
Restricts which domains, methods, and headers are allowed.
Helps prevent CORS errors in browsers.
Configurable via allowed origins, headers, and credentials.
// Function signature
app.Use(cors.New())