Skip to content

Instantly share code, notes, and snippets.

View agenciaultraja's full-sized avatar
😉
Success!

Ultra Já Soluções Inteligentes agenciaultraja

😉
Success!
View GitHub Profile
@eusonlito
eusonlito / .htaccess
Created February 4, 2020 15:17
Accept all CORS requests on Apache and nginx. Improve website performance accepting all OPTIONS requests.
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
# Allow Access Control Headers
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET,PUT,POST,DELETE,PATCH,OPTIONS"
Header set Access-Control-Allow-Headers "Accept, Accept-Datetime, Accept-Language, App-Version, Authorization, Cache-Control, Content-Type, Date, Device-Token, Location, Origin, Time-Zone, User-Agent, X-Requested-With"
Header set Access-Control-Allow-Credentials "true"