Skip to content

Instantly share code, notes, and snippets.

View SerhatUcek's full-sized avatar

Serhat Ucek SerhatUcek

View GitHub Profile
@SerhatUcek
SerhatUcek / .htaccess
Created February 4, 2020 11:17 — forked from negarjf/.htaccess
.htaccess config for local cross origin problem
# .htaccess config for local cross origin problem
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token, cache-control"
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS