CORS errors on Azure Translator API (Cognitive Services) when using Aurelia's Fetch Client
问题 I try to use a very basic API call from Windows Azure to translate some texts. They gives a quickstart example code. I try this code and it works pretty well. The text Hello world is translated into deutch and italian. I removed my personal subscription key. Here is the sample: const request = require('request'); const uuidv4 = require('uuid/v4'); const subscriptionKey = '........'; let options = { method: 'POST', baseUrl: 'https://api.cognitive.microsofttranslator.com/', url: 'translate', qs