retrofit.dart
retrofit.dart copied to clipboard
Always send to the OPTIONS method(Chrome web only).
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)
Screenshot 2 - (Server log)
Desktop (please complete the following information):
- OS: macOS
- Browser: Chrome
- Version: 99.0.4844.83(arm64)
- retrofit-3.0.1+1
it's may be CORS issue....