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.

Falsk url redirect with Masking

See original GitHub issue

Is there a way to redirect url in flask app and mask the url?

@app.route("/test")
def handle_ext_url():
    url = "https://www.google.com"
    return redirect(url)

I just want my addressbar to show localhost:8080/test but the page should show google.com.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nhdinhcommented, Jan 20, 2021

@nhdinh @ThiefMaster

I do not want to use iframe, I just want to mask my address bar to my flask app host port and show web content of redirected url.

Similar to what we do in the masked domain forward.

Got it. I think this issue is out of Flask scope.

1reaction
khannavivekcommented, Jan 20, 2021

@nhdinh @ThiefMaster I do not want to use iframe, I just want to mask my address bar to my flask app host port and show web content of redirected url. Similar to what we do in the masked domain forward.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flask - Hidden redirect, How to do URL Masking in Flask?
I have a task where I need to redirect to an external url, which will then POST redirect back to the flask app...
Read more >
Redirect Entire Domain with Flask - Amir Rachum's Blog
This means that blog.amir.rachum.com should redirect to amir.rachum.com and that every URL should redirect to its appropriate counterpart ...
Read more >
Building Url Dynamically In Flask Web Framework - YouTube
github: https://github.com/krishnaik06/ Flask -Web-FrameworkWe at iNeuron are happy to announce multiple series of courses.
Read more >
How to mask a domain name with another? : r/flask - Reddit
I created a web app, where a user get a pre-made website upon signup (e.g. www.webapp.com/user1 ) I would like users to use...
Read more >
How to Make Your Own URL Shortener — Straightforward ...
The logic is simple, look up the URL that the user-provided, if it exists, redirect to the corresponding website, else, send the user...
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