[Vuejs]-Node CORS fine on Chrome but not Safari / Firefox

1👍

You’ve got two origins involved here, https://eccentrictoad.com and https://www.eccentrictoad.com. To allow requests from both you can use an array for the origin configuration option:

'origin': ['https://eccentrictoad.com', 'https://www.eccentrictoad.com'],

From a CORS perspective these count as totally separate origins, even if they’re actually the same server.

Leave a comment