luqmanrom
6/30/2016 - 3:51 AM

cors.md

APACHE

  • Add headers field to allow CORS
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
  • Enable APACHE headers modules
a2enmod headers