Re:Handling CORS with Nginx
by bjohnso5 on Friday May 16, 2014 @07:43PM
(#7758568)
Quick suggestion: rather than having your headers return 'Access-Control-Allow-Origin' '*';, you're better off echoing the requesting domain back, so that in the future you'll be able to maintain a whitelist of registered domains. Prevents usage from any-old-domain (though I realize you have authorization already built into some parts of your API).
[ Parent
| on HN ]
There are no comments on this comment yet.