PUT request with missing Access-Control-Allow-Origin header
The response to the pre-flight request must include an
Access-Control-Allow-Origin header, otherwise the browser won’t make the main request.
- Hit green button below and see that request fails
- Press F12 to open browser Developer Tools
- Open Console tab and see error message “Response to preflight request … No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”
View source on GitHub | Created by Tom Gregory