Added categories to workflows
This commit is contained in:
@@ -2877,8 +2877,8 @@ func fixUserOrg(ctx context.Context, user *User) *User {
|
||||
|
||||
// Used for testing only. Shouldn't impact production.
|
||||
func handleCors(resp http.ResponseWriter, request *http.Request) bool {
|
||||
//allowedOrigins := "http://localhost:3000"
|
||||
allowedOrigins := "http://localhost:3002"
|
||||
allowedOrigins := "http://localhost:3000"
|
||||
//allowedOrigins := "http://localhost:3002"
|
||||
|
||||
resp.Header().Set("Vary", "Origin")
|
||||
resp.Header().Set("Access-Control-Allow-Headers", "Content-Type, Accept, X-Requested-With, remember-me, Authorization")
|
||||
@@ -4628,7 +4628,7 @@ func findAvailablePorts(startRange int64, endRange int64) string {
|
||||
func handleSendalert(resp http.ResponseWriter, request *http.Request) {
|
||||
user, err := handleApiAuthentication(resp, request)
|
||||
if err != nil {
|
||||
log.Printf("Api authentication failed in getworkflows: %s", err)
|
||||
log.Printf("Api authentication failed in sendalert: %s", err)
|
||||
resp.WriteHeader(401)
|
||||
resp.Write([]byte(`{"success": false}`))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user