mxstbr/micro-github

Make the response mode configurable: fragment, query or form_post

Open

#7 创建于 2017年2月16日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (730 star) (58 fork)batch import
enhancementhelp wanted

描述

For single page apps, you don't want to send the access tokens to the backend server. Putting the access token in the query string will do that. So for single page apps, you'll want to use the hash fragment instead (https://mysite.com#access_token=xyz).

For web applications you might want to use a form post instead of the query string. The end result is the same (both post and querystring will be available in the req), but the main difference is that with a form post the access token is not exposed in the browser history etc...

贡献者指南

Make the response mode configurable: fragment, query or form_post · mxstbr/micro-github#7 | Good First Issue