Skip to content

How to solve the static resource loading problem of the target server when the target path is dynamic proxy #205

Answered by dsmiley
ziqingkeshi asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming I understand your scenario, this is not something the proxy is designed to handle. Doing this would require rewriting the HTML and maybe other resources coming from the site to insert a leading /proxy. Or add an HTML meta tag that sets the URL base (if I recall; I haven't done front end work in many years). If you have control over the target site, you could improve it to avoid absolute URLs.

It's likely you'll have to seek another proxy solution.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ziqingkeshi
Comment options

Answer selected by ziqingkeshi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants