diff --git a/src/assets/css/main.css b/src/assets/css/main.css index cb4a8b81..b917b3ec 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -84,7 +84,7 @@ margin-top: -6.5px; } -.post-title a:visited { +.post-title a:visited:not(:hover) { color: var(--bs-gray) !important; } diff --git a/src/server/middleware/set-default-csp.ts b/src/server/middleware/set-default-csp.ts index a3ee5261..fd776ab6 100644 --- a/src/server/middleware/set-default-csp.ts +++ b/src/server/middleware/set-default-csp.ts @@ -3,7 +3,7 @@ import type { NextFunction, Response } from "express"; export default function ({ res, next }: { res: Response; next: NextFunction }) { res.setHeader( "Content-Security-Policy", - `default-src 'self'; manifest-src *; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *; media-src *` + `default-src 'self'; manifest-src *; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *; media-src * data:` ); next(); diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index 081792aa..84ea77ae 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -531,7 +531,7 @@ export class PostForm extends Component { checked={this.state.form.nsfw} onChange={linkEvent(this, handlePostNsfwChange)} /> -