When I use superagent to create collection by post method,
The browser first request with the option method.
Seems like the server dosn’t support OPTIONS request.
chrome dev tool console:
Failed to load https://api.getpostman.com/collections: Response to preflight request doesn’t pass access control check: The ‘Access-Control-Allow-Origin’ header contains the invalid value ‘’. Origin ‘http://localhost:8080’ is therefore not allowed access.