tsk-4: Formatted code
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ func main() {
|
||||
router := chi.NewRouter()
|
||||
|
||||
// Configure CORS
|
||||
router.Use( cors.Handler(cors.Options{
|
||||
router.Use(cors.Handler(cors.Options{
|
||||
AllowedOrigins: []string{fmt.Sprintf("http://localhost:%s", config.PORT), "http://localhost:5173", "https://textsender.com"},
|
||||
AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"},
|
||||
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"},
|
||||
|
||||
Reference in New Issue
Block a user