0๐
- Try:
<IfModule mod_headers.c>
Header always set Access-Control-Allow-Origin "http://localhost:8081"
Header always set Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE"
</IfModule>
- Enable apache module headers and restart the Apache service.
Apache: difference between "Header always set" and "Header set"?
Source:stackexchange.com