question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

urlFilter with wildcard does not match root URL

See original GitHub issue
  • VS Code Version: 1.41.1
  • Log file (set "trace": true in launch config): N/A

Steps to reproduce:

  1. Using the following launch.json:
{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "edge",
      "request": "attach",
      "name": "Attach Edge",
      "urlFilter": "https://localhost:3000/*",
      "webRoot": "${workspaceFolder}/Portal/apps",
      "sourceMaps": true,
      "smartStep": true,
      "skipFiles": ["**/node_modules/**"],
      "sourceMapPathOverrides": {
        "webpack:///*": "${webRoot}/*"
      },
      "port": 2015
    }
  ]
}
  1. Attaching works when a tab is open on a sub-page, e.g https://localhost:3000/home.
  2. Attaching does not work when the tab is open on the root URL, e.g. https://localhost:3000.

I would expect the wildcard to match anything or nothing. Or else there should be an operator for optional wildcard.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
roblourenscommented, Jan 25, 2020

Probably works if it ends with 3000* right?

1reaction
connor4312commented, Nov 3, 2020

I noticed this issue in js-debug (our new debugger) a week or two ago as well, will transfer this issue, fix, and close it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Using wildcard in URL filtering - Cisco Community
So, it appears the substring matching works if I create an actual URL object, then block it. Substring matching, however, does not work,...
Read more >
FortiGate - Technical Tip: URL Filter expressions for the Fort...
Wildcard : A Wildcard entry can be used to flexibly match multiple URLs based on the specified keyword/string. Notably, Wildcard entries do not...
Read more >
Examples of using wildcards in URL filtering profiles
The article helps understand why certain URL is matching or not matching a wildcard filter in customer URL category.
Read more >
URL Filter Matching - Beginners Guide - YouTube
URL Filter Matching - Beginners Guide Let's look at the different URL Filter Methods to block URL's using the simple, wildcard and regular ......
Read more >
Learning suggestions for wildcard URLs may not match ...
You add a wildcard URL to the Allowed URLs List. For example: /images/*. The security policy processes traffic that matches the wildcard URL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found