Cookies #1120
              
                
                  
                  
                    Answered
                  
                  by
                    miguelgrinberg
                  
              
          
                  
                    
                      Notadumdum
                    
                  
                
                  asked this question in
                Q&A
              
            
            
              Cookies
            
            #1120
          
          
        -
| For socket.io connections that use websockets instantly without starting off with polling;would cookies be considered as custom headers, if so could http request headers be considered as custom headers as well or there's an exception if I want to make use of it on the client side.. the main question is would headers not be able to be used at all? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            miguelgrinberg
          
      
      
        Jan 21, 2023 
      
    
    Replies: 1 comment 2 replies
-
| Cookies are not sent via custom headers, they use the  | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
      Answer selected by
        Notadumdum
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Cookies are not sent via custom headers, they use the
Cookieheader which is defined in the HTTP spec. I believe all browsers send cookies when they make a WebSocket connection.