Illuminate

Results 6 comments of Illuminate

with this: app.set('port', process.env.PORT || 3000); var server = app.listen(app.get('port'), function() { debug('Express server listening on port ' + server.address().port); });

@jub0bs HI,bro.thanks for your reply. this is my code,assume it's expose url:https://www.myserver.com ```go var Router = gin.Default() Router.Use(middleware.NewCors()) func NewCors() gin.HandlerFunc return cors.New(cors.Config{ AllowOrigins: []string{"https://www.myhome.com"}, AllowMethods: []string{"POST", "GET", "OPTIONS"}, AllowHeaders:...

> @jub0bs HI,bro.thanks for your reply. this is my code,assume it's expose url:https://www.myserver.com > > ```go > var Router = gin.Default() > Router.Use(middleware.NewCors()) > func NewCors() gin.HandlerFunc > return cors.New(cors.Config{...

@jub0bs That i'm say,i set origin:https://www.myhome.com, expect only this url can access my server(https://www.myserver.com/), but i found i misunderstand .than i find this description in [what is origin](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin#description) I realize...

@jub0bs Yean,bro!I think i finally understand CORS can do something and not can do something.Thinks for you patience,have a nice day!