Skip to content

feat: add font localhost for vite development#36

Merged
laravdiemen merged 1 commit into
mainfrom
feat/localhost-vite-font
Mar 18, 2026
Merged

feat: add font localhost for vite development#36
laravdiemen merged 1 commit into
mainfrom
feat/localhost-vite-font

Conversation

@laravdiemen
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds font-src allowances for localhost in the CSP policy when running in a development environment, to support loading fonts from the Vite dev server.

Changes:

  • Extend the development-only CSP configuration to include Directive::FONT for http(s)://localhost:* (and ws://localhost:* to match existing patterns).
  • Keep existing Vite-related connect-src, script-src, img-src, and style-src localhost allowances intact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@laravdiemen laravdiemen merged commit 12f122e into main Mar 18, 2026
6 checks passed
@laravdiemen laravdiemen deleted the feat/localhost-vite-font branch March 18, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants