Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected argument '--unsafely-treat-insecure-origin-as-secure' #19013

Closed
melonchucker opened this issue May 6, 2023 · 1 comment
Closed

Comments

@melonchucker
Copy link

deno run --unsafely-treat-insecure-origin-as-secure='https://example.com' gives an error saying it get's an unexpected argument.

I tried different variations and various hostnames but it still fails. There is nothing in the permissions section of the docs that mentions this feature.

[https://github.com//issues/1371] and [https://github.com//pull/11324] says this was merged

deno --version
deno 1.32.4 (release, x86_64-unknown-linux-gnu)
v8 11.2.214.9
typescript 5.0.3

@aapoalas
Copy link
Collaborator

aapoalas commented May 6, 2023

You're probably looking for deno run --unsafely-ignore-certificate-errors='http://example.com' main.ts.

This can be found in the CLI arguments help with deno run --help:

  --unsafely-ignore-certificate-errors[=<HOSTNAMES>...]
     DANGER: Disables verification of TLS certificates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants