No description
  • CSS 53%
  • JavaScript 27.8%
  • HTML 19.2%
Find a file
2026-02-28 18:39:51 +01:00
app.js Fix Javascript submit 2026-02-28 18:39:51 +01:00
index.html Fix Javascript submit 2026-02-28 18:39:51 +01:00
LICENSE Initial commit 2026-02-28 18:17:26 +01:00
README.md Update apache-config 2026-02-28 18:39:42 +01:00
reset.css Initial commit 2026-02-28 18:17:26 +01:00
style.css Initial commit 2026-02-28 18:17:26 +01:00

Simple javascript application to set a cookie. That cookie is checked by apache to authenticate the user. Sometimes basic- oder digest-auth don't work (for example when the application makes some special Javascript-XHR-Requests). Cookies are sent anyway, this is the part for the apache config:

	# Check for token-cookie
	RewriteEngine On
	RewriteRule "^/\." "-" [last]
	# If cookie is set just pass through
	RewriteCond "%{HTTP_COOKIE}" "(?:^|\W)__Host-auth-token=YOUR_TOKEN_PASSWORD(?:\W|$)"
	RewriteRule ".*" "-" [last]
	# Last, if nothing is given, redirect to input
	RewriteRule ".*" "/.token-auth/" [last,redirect=303]