Skip to content

XMLHttpRequest Errror on Flutter Web App using parse server #716

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

Closed
Shankar-Joshi opened this issue Apr 25, 2022 · 3 comments
Closed

XMLHttpRequest Errror on Flutter Web App using parse server #716

Shankar-Joshi opened this issue Apr 25, 2022 · 3 comments
Labels
type:question Support or code-level question

Comments

@Shankar-Joshi
Copy link

New Issue Checklist

Issue Description

I am getting XMLHttpRequest Errror while trying to connect to parse from flutter web app. I did see in the docs for web support it says "Due to Cross-origin resource sharing (CORS) restrictions, this requires adding X-Parse-Installation-Id as an allowed header to parse-server". But I looked everywhere and I don't know where to add this X-Parse_installation-id and how to add it. I couldn't find anything anywhere. Can you please help?

Steps to reproduce

When you try to connect to parse server from flutter web app, you receive this error.

Actual Outcome

╭-- Parse Response
Class: _User
Function: ParseApiRQ.login
Status Code: -1
Type: UnknownError
Exception: XMLHttpRequest error.

Expected Outcome

Successful connection to parse server.

Environment

sdk: ">=2.16.2 <3.0.0"

Parse Flutter SDK

  • SDK version: 2.10.4
  • Operating system version: Windows 10

Server

  • Parse Server version: 3.1.0

Logs

╭-- Parse Response
Class: _User
Function: ParseApiRQ.login
Status Code: -1
Type: UnknownError
Exception: XMLHttpRequest error.
╰--

@parse-github-assistant
Copy link

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@RodrigoSMarques
Copy link
Contributor

This is not a package issue, but your Parse server configuration issues.

It is described in the package documentation and we also have this issue here.

Tip: Use the repository search to find issues.

@mtrezza mtrezza added the type:question Support or code-level question label Apr 25, 2022
@mtrezza
Copy link
Member

mtrezza commented Apr 25, 2022

I'm closing this as it does not seem to be a Parse Flutter SDK issue.

  • For help with Parse Platform we recommend our community forum
  • For coding questions we recommend Stack Overflow using the parse-platform tag
  • For network and server questions we recommend ServerFault using the parse-server tag

@mtrezza mtrezza closed this as completed Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

3 participants