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.

Confirm you’ve already contributed to this project or that you sponsor it

  • I confirm I’m a sponsor or a contributor

Version

4.x

Question

Hi,

I always struggle with the several layers of proxies that some of my customers have. Very often, the actual public host name gets lost somewhere. This is an issue if you create absolute URLs.

Therefore I have a configuration value for the public URL. In AttachEndpoints you calculate the URIs based on the host URL if the configured URLs are not absolute.

Would it be possible to introduce an option to override the base uri? I know that I could override AttachEndpoints method, but I would prefer a more lightweight option.

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
SebastianStehlecommented, Feb 14, 2023

I totally agree that they should just configure their reverse proxies correctly … but this is the reality I live in.

I will think about it.

0reactions
kevinchaletcommented, Feb 18, 2023

Great to hear! 👍🏻

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the baseURI of a Node in Javascript
How can I change the .baseURI attribute dynamically in Javacsript? [EDIT] According to this SO using base is perfectly legit.
Read more >
baseURI property JavaScript - Dottoro Web Reference
The base URL is the location of the current document by default, but it can be overridden by the base tag. Syntax: object.baseURI;....
Read more >
How to change metadata baseUri per minted NFT
I can do it for all NFTs, just by changing baseUri (override function tokenURI), but don't know how to do it for individual...
Read more >
Node: baseURI property - Web APIs | MDN
The read-only baseURI property of the Node interface returns the absolute base URL of the document containing the node.
Read more >
How to Change your BaseUri of your Generated NFT'S
How to Change BaseUri of Your Generated NFT'S In this video, I will teach you how to quickly and easily Change BaseUri of...
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