Updates to app grabbing from backend

This commit is contained in:
frikky
2021-02-12 10:08:26 +01:00
parent a6763a99a0
commit 83c58849cf
2 changed files with 51 additions and 13 deletions
+2 -2
View File
@@ -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")