mirror of
				https://github.com/bolucat/Archive.git
				synced 2025-10-31 11:57:05 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			485 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			485 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build dev
 | |
| // +build dev
 | |
| 
 | |
| package http
 | |
| 
 | |
| // global headers to append to every response
 | |
| // cross-origin headers are necessary to be able to
 | |
| // access them from a different URL during development
 | |
| var globalHeaders = map[string]string{
 | |
| 	"Cache-Control":                    "no-cache, no-store, must-revalidate",
 | |
| 	"Access-Control-Allow-Origin":      "*",
 | |
| 	"Access-Control-Allow-Headers":     "*",
 | |
| 	"Access-Control-Allow-Methods":     "*",
 | |
| 	"Access-Control-Allow-Credentials": "true",
 | |
| }
 | 
