leanote | http : //leanote.org | Editor library
kandi X-RAY | leanote Summary
kandi X-RAY | leanote Summary
Leanote, not just a notepad!.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of leanote
leanote Key Features
leanote Examples and Code Snippets
Community Discussions
Trending Discussions on leanote
QUESTION
I'm having problem in VueJs. When I try to set header (I will send JWT token in it) developer tools always show, that this request is OPTIONS. I was checking documentation and as far as I see, this is the proper way of implementation, so what I'm missing?.
...ANSWER
Answered 2018-Jan-30 at 19:32The browser sends a preflight request with method OPTIONS that seems to be rejected by your Webserver. If you respond to OPTIONS calls with 200 and the correct access-control headers from your server it should send the correct request afterwards.
Have a look at preflight requests: https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request and CORS in general for further information.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
Install leanote
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page