简体   繁体   中英

force HTTPS on Google Cloud Endpoints + App Engine

I have a web service running on Google App Engine with Cloud Endpoints for security. My web service is running on node.js with express. I have:

schemes:
- "https"

in my openAPI swagger file but the paths still works with HTTP. I want to make the web service SSL only. How can I block all HTTP requests?

Modifying the app.yaml doesn't work for me because node.js environment doesn't support handlers. I tried using the express-sslify module but it did not work as well.

Endpoints does not have the ability to block requests according to the scheme. Therefore, you cannot use Endpoints to perform blocking only HTTP requests.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM