mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 19:40:19 +08:00
Add github oauth.
This commit is contained in:
2
main.go
2
main.go
@ -17,6 +17,7 @@ package main
|
||||
import (
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/plugins/cors"
|
||||
"github.com/casdoor/casdoor/controllers"
|
||||
"github.com/casdoor/casdoor/object"
|
||||
"github.com/casdoor/casdoor/routers"
|
||||
|
||||
@ -25,6 +26,7 @@ import (
|
||||
|
||||
func main() {
|
||||
object.InitAdapter()
|
||||
controllers.InitHttpClient()
|
||||
|
||||
beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
|
||||
AllowOrigins: []string{"*"},
|
||||
|
Reference in New Issue
Block a user