Closed krownoss closed 6 years ago
server.ext('onPreResponse',addcorsHeaders);
line should be
server.ext('onPreResponse',corsHeaders);
This is on NPM website where the incorrect documentation is.
Thank you, I’ll release a new version to fix the documentation on npm 👍
fixed with v1.0.1
line should be