Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| 
       Package cors is net/http handler to handle CORS related requests as defined by http://www.w3.org/TR/cors/ You can configure it by passing an option struct to cors.New: c := cors.New(cors.Options{ AllowedOrigins: []string{"foo.com"}, AllowedMethods: []string{"GET", "POST", "DELETE"}, AllowCredentials: true, }) Then insert the handler in the chain: handler = c.Handler(handler) See Options documentation for more options. 
         | 
      Package cors is net/http handler to handle CORS related requests as defined by http://www.w3.org/TR/cors/ You can configure it by passing an option struct to cors.New: c := cors.New(cors.Options{ AllowedOrigins: []string{"foo.com"}, AllowedMethods: []string{"GET", "POST", "DELETE"}, AllowCredentials: true, }) Then insert the handler in the chain: handler = c.Handler(handler) See Options documentation for more options. | 
| 
         
          
            examples/alice
            
            command
          
          
         
       | 
      |
| 
         
          
            examples/default
            
            command
          
          
         
       | 
      |
| 
         
          
            examples/goji
            
            command
          
          
         
       | 
      |
| 
         
          
            examples/martini
            
            command
          
          
         
       | 
      |
| 
         
          
            examples/negroni
            
            command
          
          
         
       | 
      |
| 
         
          
            examples/nethttp
            
            command
          
          
         
       | 
      |
| 
         
          
            examples/openbar
            
            command
          
          
         
       | 
      
 Click to show internal directories. 
   Click to hide internal directories.