Skip to content

Commit

Permalink
Fix CORS issue on developing
Browse files Browse the repository at this point in the history
  • Loading branch information
ybkuroki committed Apr 8, 2023
1 parent f1d67c3 commit 9c9f708
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ func Init(e *echo.Echo, container container.Container) {
func setCORSConfig(e *echo.Echo, container container.Container) {
if container.GetConfig().Extension.CorsEnabled {
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowCredentials: true,
AllowOrigins: []string{"*"},
AllowCredentials: true,
UnsafeWildcardOriginWithAllowCredentials: true,
AllowOrigins: []string{"*"},
AllowHeaders: []string{
echo.HeaderAccessControlAllowHeaders,
echo.HeaderContentType,
Expand Down

0 comments on commit 9c9f708

Please sign in to comment.