This should work:
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
More Related Contents:
- .htaccess rewrite image file to php script
- Access-Control-Allow-Origin Multiple Origin Domains?
- How can I use .htaccess rewrite to redirect root URL to subdirectory?
- .htaccess mod_rewrite – how to exclude directory from rewrite rule
- .htaccess redirect all pages to new domain
- How does RewriteBase work in .htaccess
- .htaccess – how to force “www.” in a generic way?
- htaccess Access-Control-Allow-Origin
- .htaccess Rewrite to Force Trailing Slash at the end
- How to write htaccess rewrite rule for seo friendly url
- symfony2 rewrite rules .htaccess app.php
- htaccess rewrite breaks relative paths
- rewrite a folder name using .htaccess
- .htaccess not working on localhost with XAMPP
- mod_rewrite: remove trailing slash (only one!)
- Add Trailing Slash .htaccess
- Mod Rewrite redirect URL with query string to pretty url
- .htaccess Remove WWW from URL + Directories
- Remove .html and .php extensions with .htaccess
- PHP Rewrite Rules
- Allow/deny image hotlinking with .htaccess
- Best Practice: 301 Redirect HTTP to HTTPS (Standard Domain)
- .htaccess redirect all pages to the homepage on a new domain
- .htaccess redirect – automatically add www. if no subdomain exists
- How to use .htaccess in WAMP Server?
- htaccess code to remove extension AND add+force trailing slash?
- Using mod rewrite to change URL with username variable
- Reference capture groups of multiple RewriteCond in RewriteRule
- .htaccess rewrite URL with a question mark “?”
- How can I fix the ‘Missing Cross-Origin Resource Sharing (CORS) Response Header’ webfont issue?