Skip to content

Instantly share code, notes, and snippets.

@robotnealan
Last active October 20, 2016 09:45
Show Gist options
  • Save robotnealan/305663f6b5a40bef64a598824cfa65ad to your computer and use it in GitHub Desktop.
Save robotnealan/305663f6b5a40bef64a598824cfa65ad to your computer and use it in GitHub Desktop.
An apache rule to set open CORS headers to a specific directory.
<Directory "/path/to/folder/containing/images">
# If you have specific sub-domains you can list them instead
# of using the '*' wildcard.
Header always set Access-Control-Allow-Origin "*"
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment