nasa8x / rss-to-json

RSS and Atom feed generator for Node.js
https://morioh.com/@5df445b0103f3007600e1a57
177 stars 77 forks source link

Safari / Firefox triggering OPTIONS calls #15

Open dapope opened 5 years ago

dapope commented 5 years ago

Front-end app - the feed doesn't work for us in Safari and Firefox. It appears that setting the userAgent in the code causes those browsers to do an OPTIONS request. (In our case, the options request fails because of CORS and we don't have access to the source application)

Would be nice if setting the user agent was an optional setting. 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0',

Thx-