mephisto.cc
open-menu closeme
Home
Travel
Archives
Links
About
🌐
中文(简体) 中文(繁体) English 日本語 Español
github instagram youtube rss
  • Vue3, Vite, and TypeScript Cross-Domain Settings

    calendar 2023-03-07 · 2 min read · vue vite  ·
    Share on: weibo twitter facebook linkedin copy
    Vue3, Vite, and TypeScript Cross-Domain Settings

    I've recently been working on a development project involving Vue3, Vite, and TypeScript. The front-end and back-end are separate, and when the front-end requests the back-end, the browser debug information reports a cross-domain error. It's generally believed that cross-domain is a back-end setting, but the back-end code has never been adjusted. After some searching, I found that setting a proxy in vite.config.ts is the simplest solution.

Featured Posts

  • Hugo's Complete AVIF Conversion Guide
  • Trying to Develop a Small Game Using Godot on Linux
  • Arch linux dae Transparent Proxy
  • Airflow Takes Over Gallery-DL Download Tasks
  • How to Batch Download Images Using gallery-dl
  • How to play Dota2 and CS2 happily under Arch core display
  • Arch/labwc Environment Network Related Settings
  • Rime Adds Dota 2 Dictionary
  • Supertuxkart iOS version finally released
  • Building Your Own Streaming Music Service

Recent Posts

  • Real-time Analysis of Caddy Logs Using goaccess
  • Personal Website Monitoring
  • Supertuxkart iOS version finally released
  • Building Your Own Streaming Music Service
mephisto.cc

Copyright  2021 -   heart logo MEPHISTO.CC All Rights Reserved.   Privacy Policy

to-top