Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter Web CORS Issues #9

Open
tbwfdu opened this issue Nov 14, 2022 · 1 comment
Open

Flutter Web CORS Issues #9

tbwfdu opened this issue Nov 14, 2022 · 1 comment

Comments

@tbwfdu
Copy link

tbwfdu commented Nov 14, 2022

Hi - Obviously aware of some of the issues surrounding CORS with flutter web etc. but cannot seem to find a way to resolve this with sending additional headers for your package.

I am using the OAuthWebView method for Flutter Web and this works fine when I disable chrome web security, but doing anything in a release build and uploading it to a web host will not successfully complete the return of the authentication token etc.

I have seen in your package that there are some options for sending headers on the OAuthWebScreen.start() method but your comments suggest it doesn't work for web.

Is there any other way that we can send the right headers to my OAuth Auth endpoint and then have the web server accept it?

@luis901101
Copy link
Owner

Current implementation for web doesn’t allow headers because it is a simple redirect to the authorization url. Not sure right now how to set headers that way, I experienced the same issue with CORS in a project, I ended up configuring CORS in my authorization provider to accept requests from my web url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants