Skip to content

Relative Image url change when using proxy in Flutter Web #86

Description

@DattatreyaReddy

As we know When using a proxy url becomes

https://corsproxy.org/https://www.google.com
or
https://api.codetabs.com/v1/proxy?quest=https://www.google.com

which returns image URL

/logos/doodles/2024/seasonal-holidays-2024-6753651837110333-law.gif

But when we try to resolve the URL using the code below

output.image = Uri.parse(url_).resolve(image).toString();

it will return

https://corsproxy.org/logos/doodles/2024/seasonal-holidays-2024-6753651837110333-law.gif
or 
https://api.codetabs.com/logos/doodles/2024/seasonal-holidays-2024-6753651837110333-law.gif

which breaks the image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions