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.

Allow for external redirects

See original GitHub issue

I have a use case where I need to redirect offsite, the only way to get this to work currently is to disable routing rules in the plugin config and set them up myself.

I suggest we check if the toPath is a valid URL, and if true, stop prepending the hostname & protocol plugin options.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jarizcommented, Jul 18, 2019

@stonehz Yep, it says so in the issue description that routing rules do not support it at the moment. So, a workaround is setting generateRedirectObjectsForPermanentRedirects to true for now.

0reactions
jarizcommented, Nov 7, 2019

Fixed by #94

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage Redirects to External URLs - Salesforce Help
Under External Redirections, in the Allow redirections to untrusted external URLs field, specify the desired behavior when a user clicks an untrusted external...
Read more >
External redirected URLs - Sitebulb
External redirected URLs. This means that the URL in question is an external URL that redirects to another external URL.
Read more >
Reason: CORS request external redirect not allowed - HTTP
The CORS request was responded to by the server with an HTTP redirect to a URL on a different origin than the original...
Read more >
Internal vs External URL redirection - CodeGuage
In external redirection the browser and user all know that one URL was redirected to another. In technical terms, unlike internal redirection, ...
Read more >
External Redirect - OWASP ZAP
' Use an allow list of approved URLs or domains to be used for redirection. Use an intermediate disclaimer page that provides the...
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