You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use ical into an Ionic app but the developpement environnement is en local server and the request origin is http://localhost:8100
So when I call fromURL I get the following error message: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled
But even with a call like that ical.fromURL('http://url/cal.ics', {mode: 'no-cors'}, function (err, data) {})
THis doesn't work because the option is not recognize ...
The text was updated successfully, but these errors were encountered:
You could try using : https://cors-anywhere.herokuapp.com
as in ical.fromURL('https://cors-anywhere.herokuapp.com/https://url/cal.ics', {}, function (err, data) {})
I'm trying to use ical into an Ionic app but the developpement environnement is en local server and the request origin is http://localhost:8100
So when I call fromURL I get the following error message:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled
But even with a call like that
ical.fromURL('http://url/cal.ics', {mode: 'no-cors'}, function (err, data) {})
THis doesn't work because the option is not recognize ...
The text was updated successfully, but these errors were encountered: