When using www I don't get the api results, I get them if used without www
<p>When I open a page like this <code>www.mywebsite.in</code> it's not showing my data. However, when I open my website page without <code>www</code> I can get the results from the database.</p>

<p>I'm using <code>get</code> and <code>post</code> api to get the json data, but while loading the page I get an error:</p>

<blockquote>
  <p>Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <a href="http://mywebsite.in/values/get" rel="nofollow noreferrer">http://mywebsite.in/values/get</a>. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).</p>
</blockquote>