-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Request header field X-Parse-Application-ID is not allowed by Access-Control-Allow-Headers in preflight response. #53
Comments
Have you set the correct serverURL including parse mount point in your app? If so, then this sounds like a CORS issue that we should fix. In the meantime, the workaround would be to host your parse server and your website on the same domain (including subdomain). This is definitely not the ideal situation, though, so we will definitely seek to address this bug. You could also submit a PR :) |
hello @drew-gross replace the app-id and the rest-api-key app.all('', function(req, res, next) { aa = x-parse-application-id I make a small application to test that everything is working . the parse.initializate is this Parse.initialize('cc','dd'); cc = application_id all right even create a new document in mongodb no problem. I will be doing wrong? |
We'll do some additional investigation. In the meantime, if you could provide a complete reproduction script or test case that would be very helpful (ie. a parse-server application and JS application that we can run and instantly see the problem) |
I'm having this issue just trying to connect through the JS SDK: |
+1 got same error... "XMLHttpRequest cannot load http://localhost:1337/parse/classes/Generic. Request header field X-Parse-Application-Id is not allowed by Access-Control-Allow-Headers in preflight response." using below simple restful call fails connecting to parse-server and same code works via parse.com (commented out line below) any help would be really appreciated - thanks $.ajax({ |
ran into same bug and can't find any solution - would really appreciate any pointers |
This issue is fixed in parse-community/parse-server#390 If you don't want to wait for the next release, you can clone the repo and run the master branch. |
Hello such community I have the following question'm trying to upload a file, but I have the following error
add these lines of code for testing file uploading #20
change the application ID and the rest-api-key
and finally add a service to upload the file
but it continues to appear the same mistake :(
MLHttpRequest cannot load https://xxxxxxxx/parse/files/4188biun0z82kklf3euc_400x400.jpeg. Request header field X-Parse-Application-ID is not allowed by Access-Control-Allow-Headers in preflight response.
main.js:43 Unable to connect to the Parse API
Anyone know how I solve this?
Thank you very much for your time
The text was updated successfully, but these errors were encountered: