I made a simple web server on which I have set the Access-Control-Allow-Methods allow only GET and OPTIONS methods.
Access-Control-Allow-Methods
const http = require(\'http\'