Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does gateway support cors config? #4019

Open
willis-yang opened this issue Mar 21, 2024 · 1 comment
Open

does gateway support cors config? #4019

willis-yang opened this issue Mar 21, 2024 · 1 comment
Labels
area/gateway Categorizes issue or PR as related to gateway.

Comments

@willis-yang
Copy link

willis-yang commented Mar 21, 2024

#gateway main file
package main

import (
"cloudPhoneGateway/pkg/gateway"
"flag"
"github.com/zeromicro/go-zero/core/conf"
)

var configFile = flag.String("f", "etc/gateway.yaml", "config file")

func main() {
flag.Parse()
var c gateway.GatewayConf
conf.MustLoad(*configFile, &c)
gw := gateway.MustNewServer(c)
defer gw.Stop()
gw.Start()

}

@kevwan kevwan added the area/gateway Categorizes issue or PR as related to gateway. label Mar 29, 2024
@kevwan
Copy link
Contributor

kevwan commented Mar 29, 2024

Not yet. Will work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gateway Categorizes issue or PR as related to gateway.
Projects
None yet
Development

No branches or pull requests

2 participants