👽 removed cors from main.go

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
haraldnilsen 2024-01-13 14:54:29 +01:00
parent 1af3122607
commit c017e8829c
2 changed files with 2 additions and 3 deletions

View file

@ -7,7 +7,6 @@ import (
"helseveileder/cmd/db"
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
)
@ -36,7 +35,7 @@ type Evaluation struct {
func main() {
router := gin.Default()
router.Use(cors.Default())
// router.Use(cors.Default())
router.GET("/hello", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"hello":"world"})