在AppEngine中使用X-AppEngine-Estimated-CPM-US-Dollars [英] Usage of X-AppEngine-Estimated-CPM-US-Dollars in AppEngine
问题描述
如何在AppEngine中使用 X-AppEngine-Estimated-CPM-US-Dollars 标头.我阅读了一些文档,我们只能使用管理员凭据来使用它,这是什么意思?
How to make use of X-AppEngine-Estimated-CPM-US-Dollars header in AppEngine. i read some docs, we can make use of it with only Administrator credentials, what is this mean?
如果您有任何样品,请与我们分享.
if you have any samples please do share with us.
预先感谢!:)
推荐答案
我并没有做任何特别的事情来启用此功能.我在第 https://appengine.google.com页面上显示了我的应用的角色 Owner
/管理>权限.
I didn't do anything special to enable this functionality. I have role Owner
for my app as displayed on page https://appengine.google.com/ Administration > Permissions.
如果我从自己的Google帐户注销,则该标头会消失.
如果我登录自己的Google帐户并访问网站上的安全区域,则会显示其他标题.
If I logout from my Google Account - this header dissapear.
Additional headers appear if I logged in into my Google Account and visit secured area on my site.
在 web.xml
中标记为这样的安全区域:
Secured area marked like this in web.xml
:
<security-constraint>
<web-resource-collection>
<web-resource-name>Administration resources</web-resource-name>
<url-pattern>/admin/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
在Firebug中看起来像这样:
And it looks like this in Firebug:
这篇关于在AppEngine中使用X-AppEngine-Estimated-CPM-US-Dollars的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!