Pre-flighted JavaScript requests
PUT request with correct CORS setup
Summary
JavaScript code can make a cross-origin PUT
request.
The pre-flight response must include the correctly configured Access-Control-Allow-Origin
header.
The response to the main request must include the same header.
Instructions
- Press F12 to open browser Developer Tools
- Open Network tab and filter by path put-success
- Hit green button below and observe 1 pre-flight and 1 main request
View source on GitHub | Created by Tom Gregory