gr2m / hapi-cors-headers

hapi extension to enable CORS
MIT License
28 stars 11 forks source link

Hapi v17 support #11

Open frankthelen opened 6 years ago

frankthelen commented 6 years ago

Hi Gregor.

This is what I believe should be changed to support Hapi v17.

Your internal plugin code is the same. Just changed the way the plugin is applied to be more Hapi compliant. And added maxAge to the plugin options. It's breaking changes anyway.

Please continue from here.

Cheers.