Skip to content
Snippets Groups Projects
Commit 8d99b61e authored by arieljovananda88's avatar arieljovananda88
Browse files

add new origin

parent ce9931d3
No related merge requests found
Pipeline #66090 failed with stage
in 9 seconds
......@@ -26,7 +26,7 @@ func (s *Service) InitializeRoutes() *echo.Echo {
e := echo.New()
e.GET("/swagger/*", echoSwagger.WrapHandler)
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowOrigins: []string{"http://localhost:5173", "https://www.domainbuattesting.my.id"},
AllowOrigins: []string{"http://localhost:5173", "https://www.domainbuattesting.my.id", "https://graduit.domainbuattesting.my.id"},
AllowMethods: []string{echo.GET, echo.POST, echo.PUT, echo.DELETE, echo.PATCH},
AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept},
AllowCredentials: true,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment