forcing https won't work in localhost

It's fine once the app is deployed, but in localhost we get a SSL connection error when trying to access the following resource: https://localhost:NNNNN/_ah/api/static/proxy.html?...