You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to set up SSL, HTTPS? I noticed that when I try to set cookies with secure: true, Deno complains: "Cannot send secure cookie over unencrypted connection". I have Heroku SSL Certificate, but that is not enough. Apparently Deno needs to be run like:
import { Application } from "oak";
const app = new Application();
await app.listen({
port: Number(Deno.env.get("PORT")),
secure: true,
certFile: Deno.env.get("SSL_CERTIFICATE") as string,
keyFile: Deno.env.get("SSL_PRIVATE_KEY") as string,
alpnProtocols: ["h2", "http/1.1"],
});
I even tried that, I added my SSL certificate to .env, but it still does not work.
The text was updated successfully, but these errors were encountered:
Is there any way to set up SSL, HTTPS? I noticed that when I try to set cookies with
secure: true
, Deno complains: "Cannot send secure cookie over unencrypted connection". I have Heroku SSL Certificate, but that is not enough. Apparently Deno needs to be run like:I even tried that, I added my SSL certificate to .env, but it still does not work.
The text was updated successfully, but these errors were encountered: