google app engine - allow requests to gae endpoint only from a specific domain -
Is it allowed to request only one GE endpoint method from a specific domain (such as www.myname.com) And what does the rest say?
I'm looking for something like an app authentication (I do not want a user login)
Many thanks
You can try the following approach:
Inject your HTTPServletRequest
parameter in APIIdp .
@APImath (path = "resource / {ID}")
get public resources (named ("id") id, HttpServletRequest request < / Strong>) {
// Use the request parameter here ...
}
Above the request parameters, use the following Do:
string host = request.getRemoteHost ();
Keep in mind that the host value can be the host name of your client or proxy
Comments
Post a Comment