Menu

how to autocomplete this chrome-internal-url field

Help
Nca 33
2024-09-06
2024-09-11
  • Nca 33

    Nca 33 - 2024-09-06

    hi everyone :)
    For testing purpose, i have local website which is only usable with http, but chrome force https.
    The only solution found is modifying this chrome parameter: chrome://net-internals/#hsts and adding 'localhost' in the third field.
    And it works.
    for a while.. sometimes only a few minutes, so i re-do the same operation... many times a day.

    So i'd like to autocomplete this third field with 'localhost' in this internal chrome url..
    Tried many thind but nothing works well..
    any help please ?
    /thanks

    i obviously didn't join screenshot because anyone with chrome can access this
    And the local webserver configuration is made by scripts that i don't own, so adding certificate isn't the solution expected

     

    Last edit: Nca 33 2024-09-06
  • Paul

    Paul - 2024-09-06

    You need to tell Chrome not to force HTTPS.
    Have you tried adding localhost in chrome://settings/content/insecureContent Allowed to show insecure content?
    Have you tried using the IP address instead (127.0.0.1)?
    Have you tried http://localhost?

    cheers, Paul

     
  • Nca 33

    Nca 33 - 2024-09-10

    hi and thanks for answering :)
    i've just tried this, does'nt work
    any idea for autocomplete this page in chrome ?

     
  • Paul

    Paul - 2024-09-10

    There is the {T-REPLACE-RX} placeholder.
    https://keepass.info/help/base/placeholders.html#replacerx

    cheers, Paul

     
  • T. Bug Reporter

    T. Bug Reporter - 2024-09-11

    {T-REPLACE-RX} is unlikely to help, because anytime Chrome (or Edge, or whatever) receives "http://{...}", it automatically rewrites it to "https://{...}". You rewrite it, Chrome rewrites it back. For example, I have a router that only does HTTP for its config pages, so I'm always getting errors whenever I want to see or change its config - and that "Allowed to show insecure content" setting doesn't help because it doesn't stick - and I keep getting error messages about using an "unsupported option".

     
  • Paul

    Paul - 2024-09-11

    Playing with this in Brave (Chrome based) and I can do it with the following key sequence.
    Ctrl T
    chrome://net-internals/#hsts
    Enter
    TAB 8 times
    localhost
    TAB 2 times
    Space
    Ctrl W

    You can use KeePass to Auto-Type this sequence, but I reckon it would be easier via a hot key defined in AutoIt or AutoHotKey, so it's available all the time and you can check if Chrome is up before typing.

    I would set a bit of extra delay between key strokes for the Ctrl and TAB sequences.

    cheers, Paul

     

Log in to post a comment.