Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Web requests failing, CORS not supported #130

Open
Flassari opened this issue Dec 5, 2017 · 3 comments
Open

Web requests failing, CORS not supported #130

Flassari opened this issue Dec 5, 2017 · 3 comments

Comments

@Flassari
Copy link

Flassari commented Dec 5, 2017

Web applications communicating with Wunderlist REST API is working on fewer and fewer browsers as the API doesn't implement Cross-Origin Resource Sharing (CORS). This is breaking my web-apps using the API.

Chrome no longer allows any authenticated requests through, instead it gives an error message:

Failed to load https://a.wunderlist.com/api/v1/tasks?list_id=xxxx: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mywebsite.com' is therefore not allowed access.

This can be fixed by adding a Access-Control-Allow-Origin header to any pre-flight (Request type: OPTIONAL) requests to the Wunderlist API, populating it with either the requests Origin http header, or simply a wildcard (*).

@mvaneijgen
Copy link

mvaneijgen commented Jun 14, 2018

I'm having the same issue at the moment. Is there a fix? What can I do on my end to get it to work?

@Flassari
Copy link
Author

Wunderlist doesn't seem to be updated anymore so hacks are needed. Servers don't have this problem, so you can make a web service proxy that basically forwards your Wunderlist requests. That and other hacky solutions can be found here: https://gist.github.com/jesperorb/6ca596217c8dfba237744966c2b5ab1e

@mvaneijgen
Copy link

@Flassari thanks for the reply, will take a look at your suggestion. A server would be great an option, but I first just wanted to test things out.

Yeah, thanks Microsoft... Buying great apps and then letting them slowly bleed to death. Or is this something I can't say anymore now that they also own this platform...

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

No branches or pull requests

2 participants