edgafner / GBrowser

A Browser embedded in your IDE
Apache License 2.0
74 stars 18 forks source link

How to override user agent? #76

Closed derwaldgeist closed 1 year ago

derwaldgeist commented 1 year ago

I tried to override the UserAgent header for a specific page, but to no avail. Is this possible somehow?

image

Jonatha1983 commented 1 year ago

@Majed6 hi, any chance you can check this?

Majed6 commented 1 year ago

@derwaldgeist I recommend using https://regex101.com/ to test the URI regex before hitting save. For example:

example

Keep in mind that it's for a specific request. For example the page https://example.com loads two requests.

  1. GET | https://example.com/
  2. GET | https://example.com/favicon.ico

In your case you can:

It's also possible that the backend you're trying to mock for is using other methods to detect the device information. More context on your use case will help us help you 👍 .

Jonatha1983 commented 1 year ago

Seems to be solved will close this ticket.

Thanks @Majed6