Meteor-Community-Packages / meteor-timesync

NTP-style time synchronization between server and client, and facilities to use server time reactively in Meteor applications.
https://packosphere.com/mizzao/timesync
MIT License
118 stars 36 forks source link

Meteor Cordova [Android] CORS problem #44

Closed dominicarrojado closed 11 months ago

dominicarrojado commented 7 years ago

XMLHttpRequest cannot load https://www.domain.com/_timesync. Origin null is not allowed by Access-Control-Allow-Origin. Error syncing to server time

Why is my origin null instead of http://meteor.local?

Denly commented 7 years ago

I have this issue too

Denly commented 7 years ago

I have this issue too. Also my cordova app is not hot reloaded. not sure if it is the cause.

"XMLHttpRequest cannot load http://ccr.meteorapp.com/_timesync. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:12192' is therefore not allowed access.", source: http://localhost:12192/Discover (0)
"Error syncing to server time: ", source: http://localhost:12192/94b0dbf220ac7c0416989c7f9b7d8e314af969b9.js?meteor_js_resource=true 
agneg commented 7 years ago

+1

MeXaaR commented 6 years ago

+1

Bizow commented 5 years ago

+1 anyone have a fix for this?

Bizow commented 5 years ago

Found the issue was the package somehow reverted back to version 0.3.4 updating to 0.5.0 fixed the problem