KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to configure Apache to allow XMLHttpRequests from multiple, but not all domains. This works: Header set Access-Control-Allow-Origin "*" But it's unsafe, I want to allow domains specified by me, so after a bit of googling I got to this: Header set Access-Control-Allow-Origin "http://domain1.example http://domain2.example" But this only picks up first domain, the second is not allowed. How to properly specify multiple domains?
Tags (comma-separated)
Save Edits
Cancel