KINTO-JP / ogp_data_extract

A simple dart library for extracting the Open Graph protocol on a web pages.
MIT License
1 stars 3 forks source link

Update for flutter web #3

Closed alfaruqrizqi18 closed 2 weeks ago

alfaruqrizqi18 commented 2 months ago

Running on flutter web it seems have CORS issue, because it receive null Any advice? @KINTO-JP need to get image from url

KINTO-JP commented 1 month ago

@alfaruqrizqi18 Thank you for telling me. If that problem is happening in the development environment, try one of these things:

or

  1. Delete a file:

    • Go to the folder flutter\bin\cache.
    • Find and delete the file named flutter_tools.stamp.
  2. Change a file:

    • Go to the folder flutter\packages\flutter_tools\lib\src\web.
    • Open the file named chrome.dart in a text editor (like VSCode).
  3. Edit the file:

    • Look for the line that says disable-extensions.
    • Right below this line, add a new line that says disable-web-security.