POST &GET method returns expected result.,where as put&delete method returns error in browser. The flow didn't even enter put and delete method blocks in .js file.but all works fine with postman app, in chrome only POST & GET method returns result.
            Asked
            
        
        
            Active
            
        
            Viewed 41 times
        
    0
            
            
        - 
                    1Could you post the code you use? – SylvainF Mar 07 '19 at 11:58
- 
                    Browsers can only send GET/POST typically. You'll need some AJAX JavaScript to send PUT/DELETE – Prodigle Mar 07 '19 at 11:59
- 
                    Post your sample code, are you using expressJS? – Sohan Mar 07 '19 at 12:02
- 
                    show the code you are using along with the html form. – Mahendra suthar Mar 07 '19 at 13:32
1 Answers
0
            
            
        You need to allow cors for put and delete method.
set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE"
 
    
    
        Mukesh Mande
        
- 54
- 8
