Built-in CORS support in Connect 2 / Express 3?

57 views
Skip to first unread message

Aseem Kishore

unread,
Jan 3, 2013, 6:35:04 PM1/3/13
to expre...@googlegroups.com
I did some googling around and didn't find anything other than third-party middleware, or simple code snippets like this one:


Is this the recommended way? I would have expected to see such a common feature built-in w/ the other Connect middleware:


Just checking, thanks. =)

Aseem

Martin Wawrusch

unread,
Jan 3, 2013, 6:38:18 PM1/3/13
to expre...@googlegroups.com
Use

works flawlessly.


--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.



tjholowaychuk

unread,
Jan 4, 2013, 1:29:15 PM1/4/13
to Express
there's a "cors" example in the express repo, the reason it's not ouf
of the box is because
it's pretty app-specific, though it only requires a few header fields
to set up

Aseem Kishore

unread,
Jan 4, 2013, 2:55:18 PM1/4/13
to expre...@googlegroups.com
Thanks guys, I'm using Corser then.


Reply all
Reply to author
Forward
0 new messages