is-cross-origin

tells whether provided window is cross origin or same origin

simple-cors

Simple module to add Cross-Origin Resource Sharing headers to your routes