Skip to content

Commit

Permalink
Allow PATCH method for CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
brycekahle committed Sep 18, 2017
1 parent c8f5418 commit 7b5fd53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func NewAPIWithVersion(ctx context.Context, globalConfig *conf.GlobalConfigurati
}

corsHandler := cors.New(cors.Options{
AllowedMethods: []string{http.MethodGet, http.MethodPost, http.MethodPut, http.MethodDelete},
AllowedMethods: []string{http.MethodGet, http.MethodPost, http.MethodPut, http.MethodDelete, http.MethodPatch},
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", audHeaderName},
AllowCredentials: true,
})
Expand Down

0 comments on commit 7b5fd53

Please sign in to comment.