Tag: cors

CORS and htaccess

This works on most all my servers to setup cors: <IfModule mod_headers.c> Header always set Access-Control-Allow-Origin "https://cdpn.io" Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token" </IfModule> This works on most of