cron requests have a special header indicating that they are a cron request, X-AppEngine-Cron: true.
This is documented: http://code.google.com/appengine/docs/python/config/cron.html#Securing_URLs_for_Cron Robert On Tue, Feb 14, 2012 at 07:13, praveen <prav...@groupbachat.com> wrote: > Hi, > > I'm using Flask on google appengine > > I have a custom middleware which redirects requests from *.appspot.com > domain to my custom domain > I'm trying to skip requests from cron service from such redirection. > (else they would fail) > > I have the following code > http://stackoverflow.com/questions/9277356/skip-requests-from-cron-and-taskqueue-services-from-being-redirected-to-custom-d > > Can someone comment on why the check for "X-AppEngine-Cron" isn't > working? > > Thanks > Praveen > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appengine@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.