title: How do I set the origin in the DeepL API on javascript?
body: <p>What else should I try?</p>
  <p>I'm currently sending a request to the DeepL API in axios, but I'm getting a 403 response due to a CORS issue.</p>
  <p>And tried to set the option using querystring as shown here, but it didn't work. <a href="https://github.com/funkyremi/deepl/blob/master/index.ts" rel="nofollow noreferrer">https://github.com/funkyremi/deepl/blob/master/index.ts</a>
  Also, using the library at the URL above returns 403.</p>
  <p>Furthermore, there is no origin setting in the account settings of DeepL.</p>
  <p>I tried using 'Content-Type': 'application/x-www-form-urlencoded' for axios headers: {}, and I also tried setting options for params: { } and not using querystring, but they didn't work.</p>
  <pre><code>import axios from 'axios'
  import querystring from 'querystring';
  
  export const translateDeepL = async() =&gt; {
    const options = {
        &quot;auth_key&quot;: process.env.DEEPL_AUTH_KEY,
        &quot;text&quot;: 'everyday is birthday.',
        &quot;target_lang&quot;: 'JA',
    };
    const url = &quot;https://api-free.deepl.com/v2/translate&quot;;
    const data = await axios.post(url, querystring.stringify(options)).then(r =&gt; r);
    console.log(data);
  }
  </code></pre>
  <pre><code>VM3451:1 POST https://api-free.deepl.com/v2/translate 403
  </code></pre>
  <p>the request use https with ngrok did't work also.</p>
  <p>I also tried the GET method for &quot;https://api-free.deepl.com/v2/usage&quot; but got the same result.</p>
  <p>It is definitely api-free.deepl.com since I am using the free plan.</p>
  <p>By the way, the above code is executed as a component in React.</p>