<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>XxGodmoonxX</author_name>
  <author_url>https://blog.hatena.ne.jp/XxGodmoonxX/</author_url>
  <blog_title>青いやつの進捗日記。</blog_title>
  <blog_url>https://tech.motoki-watanabe.net/</blog_url>
  <categories>
    <anon>Vite</anon>
    <anon>hmr</anon>
    <anon>WebSocket</anon>
  </categories>
  <description>先に結論 allowedHostsを設定する allowedHostsを.ではじめる指定かどうかでVite開発用WebSocket（HMR）のホスト名が変わるので注意 Viteのセキュリティ警告が出たので、アップデート $ yarn npm audit └─ vite ├─ ID: 1101618 ├─ Issue: Websites were able to send any requests to the development server and read the response in vite ├─ URL: https://github.com/advisories/GHSA-v…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.motoki-watanabe.net%2Fentry%2F2025%2F02%2F08%2F185202&quot; title=&quot;viteを5.4.12にあげる必要があるセキュリティ警告が出ていたのでアップデートしたらallowedHostsの設定が必要になり、allowedHostの設定によってviteのhmrのWebSocket接続のホスト名が変わる - 青いやつの進捗日記。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-02-08 18:52:02</published>
  <title>viteを5.4.12にあげる必要があるセキュリティ警告が出ていたのでアップデートしたらallowedHostsの設定が必要になり、allowedHostの設定によってviteのhmrのWebSocket接続のホスト名が変わる</title>
  <type>rich</type>
  <url>https://tech.motoki-watanabe.net/entry/2025/02/08/185202</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
