title: How to set up CORS with Drupal 8
body: <p>I am setting up a view with views, with display being rest JSON, how can I set up the <code>Cross-Origin Resource Sharing (CORS)</code> for it. </p>
  
  <p>I suppose the solution is to modify the default.services.yml, which is indicated by <a href="https://www.drupal.org/node/2715637" rel="nofollow noreferrer">https://www.drupal.org/node/2715637</a> and I did already. </p>
  
  <p>But I still can not request the JSON resource from a different host. Does somebody know how to solve this?</p>
  
  <p>Thank you</p>