Closed SamuelColacchia closed 6 years ago
@SamuelColacchia Thank you for letting us know.
I need to rethink the security on that endpoint. It only needs to be used from stockpileapp.co/subscribe, so I could implement CORS to restrict the route to only requests from that domain.
CORS is enabled by default in Restify, so I may have broken it at one point, possibly in ./controllers/options.js
.
API accepts both a roleID and a organizationID with out performing any authentication.
This may cause unintended security side effects.
Post to API - auth/register
Response from - auth/register