retrofit.dart icon indicating copy to clipboard operation
retrofit.dart copied to clipboard

Always send to the OPTIONS method(Chrome web only).

Open SooChang-Lee opened this issue 2 years ago • 1 comments

Describe the bug When build a flutter app for chrome web, always send an http request to the OPTIONS method.

To Reproduce Steps to reproduce the behavior: 1.build for web and run 2. method of all requests is OPTIONS.

There is no problem with android, ios, mac, and windows apps. post -> post get -> get

Only when building for the web, the method is fixed as OPTIONS. post -> options get -> options

Expected behavior request must be made by the specified method (POST, GET, etc.).

Screenshot 1 - (Flutter code) image Screenshot 2 - (Server log) image

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version: 99.0.4844.83(arm64)
  • retrofit-3.0.1+1

SooChang-Lee avatar Mar 21 '22 23:03 SooChang-Lee

it's may be CORS issue....

note11g avatar May 08 '22 09:05 note11g