Skip to content

Commit 01db3bd

Browse files
PlasmaPowerhkalodner
authored andcommitted
Fix GraphQL config overwriting HTTP config
1 parent 72582a7 commit 01db3bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/genericconf/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ var GraphQLConfigDefault = GraphQLConfig{
9696
}
9797

9898
func (c GraphQLConfig) Apply(stackConf *node.Config) {
99-
stackConf.HTTPCors = c.CORSDomain
100-
stackConf.HTTPVirtualHosts = c.VHosts
99+
stackConf.GraphQLCors = c.CORSDomain
100+
stackConf.GraphQLVirtualHosts = c.VHosts
101101
}
102102

103103
func GraphQLConfigAddOptions(prefix string, f *flag.FlagSet) {

0 commit comments

Comments
 (0)