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

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

waydejohnsonwaydejohnson Posts: 3Questions: 2Answers: 0

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

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    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

  • waydejohnsonwaydejohnson Posts: 3Questions: 2Answers: 0

    Thanks!

This discussion has been closed.