Appstax middleware for express.js
- Forwards the "x-appstax-sessionid" header to calls using the appstax-js sdk.
- Sets the neccesary CORS headers for using the appstax sdk on the client side.
Installing
> npm install appstax-express --save
Example usage
You initialize appstax with your app key as usual, and add use appstax.sessions()
and appstax.cors()
to apply the neccesary middleware.
var express = ;var appstax = ; var app = ; appstax;app;app; app;