Stopping HTTP redirects to HTTPS

35 views
Skip to first unread message

Vivek Singh

unread,
May 24, 2016, 3:57:29 PM5/24/16
to Google App Engine
I recently enabled HTTPs in my projects by adding following lines in web.xml

<security-constraint>
     
<web-resource-collection>
         
<web-resource-name></web-resource-name>
         
<url-pattern>/*</url-pattern>
     
</web-resource-collection>
     
<user-data-constraint>
         
<transport-guarantee>
              CONFIDENTIAL
         
</transport-guarantee>
     
</user-data-constraint>  
   
</security-constraint>  


As the result all the http request will be redirected to same URL using https (LINK)

And this is working fine in expected manner.

I have modified code of mobile apps to send https requests.

But I dont need http request to be redirected using https.
(In order to support apps which are still sending http request.
i.e. http request from devices on which the users are still running old version of app)

Barry Hunter

unread,
May 24, 2016, 4:03:38 PM5/24/16
to google-appengine
You dont need to configure anything for HTTPS to just be 'available'. At least for appspot.com urls. 

They just work. 


That code, is for configuring the automatic redirect, ie saying you do want the to only use https. 


So just remove that code to remove the redirect!


(or just change <url-pattern>, so that it never matches any real URL! As it defines the list of URLs that redirect. 



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/307b5df4-ce63-4904-8689-558c5128e9fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vivek Singh

unread,
May 24, 2016, 4:04:56 PM5/24/16
to Google App Engine
Thank you for helping out
Reply all
Reply to author
Forward
0 new messages