mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-07 16:54:16 +01:00
Handle CORS requests before authentication (#413)
This helps our FE to get proper request responses
This commit is contained in:
parent
1be8c16e34
commit
14e322d3f7
@ -26,7 +26,7 @@ func APIHandler(accountManager s.AccountManager, authIssuer string, authAudience
|
||||
accountManager.IsUserAdmin)
|
||||
|
||||
apiHandler := mux.NewRouter()
|
||||
apiHandler.Use(jwtMiddleware.Handler, corsMiddleware.Handler, acMiddleware.Handler)
|
||||
apiHandler.Use(corsMiddleware.Handler, jwtMiddleware.Handler, acMiddleware.Handler)
|
||||
|
||||
groupsHandler := NewGroups(accountManager, authAudience)
|
||||
rulesHandler := NewRules(accountManager, authAudience)
|
||||
|
Loading…
Reference in New Issue
Block a user