Skip to content

Instantly share code, notes, and snippets.

View shirooo39's full-sized avatar

Shiro39 shirooo39

View GitHub Profile
@rohanb10
rohanb10 / _README.md
Last active January 30, 2024 06:12
Implementing Search on a Static Website

Implementing Search on a Static Website

Need search on your website but don't want to do all the work of setting up a server or a db? Here's how to do it:

Unfortunately, this method requires jQuery, so if you're trying to avoid that you're out of luck.

Search results will show up on the same page as the search input.

@robsonsobral
robsonsobral / _headers
Last active August 10, 2023 21:08
Netlify headers
/*
# Only connect to this site and subdomains via HTTPS for the next one year
Strict-Transport-Security: max-age=31536000; includeSubDomains
# Block site from being framed with X-Frame-Options and CSP
Content-Security-Policy: frame-ancestors 'self'
# X-Frame-Options tells the browser whether you want to allow your site to be framed or not. By preventing a browser from framing your site you can defend against attacks like clickjacking.
X-Frame-Options: SAMEORIGIN