How can I pass an url parameter from my app to the Chrome extension?

前端 未结 2 1044
别那么骄傲
别那么骄傲 2021-01-16 23:43

In my Google App Engine app I want to pass this user information

    user = users.get_current_user()

to the Chrome extension in a url param

2条回答
  •  既然无缘
    2021-01-17 00:03

    This is from a while ago, but just in case someone stumbles upon it as I did today.

    Sending the user email as a URL parameter is totally unsafe. Anyone using curl or their browser can make requests pretending to be any random user. If users can alter data with their requests, or if they should not be able to see each others data then you shouldn't follow this approach.

    You should use GAE's cookie based user's service instead:

    • python version
    • java version

提交回复
热议问题