👽 removed cors from main.go
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
1af3122607
commit
c017e8829c
2 changed files with 2 additions and 3 deletions
|
@ -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"})
|
||||
|
|
Reference in a new issue