Skip to content

Instantly share code, notes, and snippets.

matthewbeta /
Created Jun 2, 2021 — forked from davidohlin/
Homestead allow CORS (with Sprig for Craft CMS)

Working allow CORS Homestead (with Sprig for Craft CMS)

Place the following in the server block of your sites nginx config, ie /etc/nginx/sites-enabled/

# Allow CORS
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,hx-current-url,hx-request,hx-target,hx-t>
matthewbeta / visuallyhidden.css
Last active Aug 29, 2015 — forked from sousk/gist:1280108
Hide Visually HTML5 BP style
View visuallyhidden.css
/* Hide only visually, but have it available for screenreaders: */
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
View gist:9dc4b1704249f636fd88
module.exports = function(grunt) {
var dev = {
deployConfiguration: grunt.file.readYAML(""),
prod = {
deployConfiguration: grunt.file.readYAML("deployment.yml");
bucket = 'ember-build-dsh';
matthewbeta / dabblet.css
Created May 24, 2012 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
View dabblet.css
* The first commented line is your dabblet’s title
min-height: 100%;