How to add Access-Control-Allow-Origin' header to response
How to add Access-Control-Allow-Origin' header to response

I'm using the PHP SQL library on an apache server and am trying to test from localhost. However, I keep getting XMLHttpRequest blocked by CORS policy
How do I add a Access-Control-Allow-Origin' header to the response?
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This should help, it's showing the same thing. If not, it would be best to ask on StackOverflow, as it's not a DataTables specific issue.
Colin
Thanks!