2024-11-04
2677
#js libraries
Nelson Michael
86520
Nov 4, 2024 â‹… 9 min read

Using Axios to set request headers

Nelson Michael Nelson Michael is a frontend developer from Nigeria. When he's not meddling with CSS, he spends his time writing, sharing what he knows, and playing games.

Recent posts:

How To Implement View Transitions In Multi-Page Apps

How to implement view transitions in multi-page apps

Enhance navigation in multi-page apps using the View Transition API, CSS, and JavaScript — no heavy frameworks needed.

Rob O'Leary
Jan 31, 2025 â‹… 12 min read
net maui 9 blazor

.NET MAUI 9 brings new improvements to Blazor

Developers can take advantage of the latest release of .NET MAUI 9 to build better user experiences that more accurately react and respond to changes in their applications.

Andrew Evans
Jan 30, 2025 â‹… 6 min read
Implementing React Islands In Static Web Applications

Implementing React Islands in static web applications

React Islands integrates React into legacy codebases, enabling modernization without requiring a complete rewrite.

Nelson Michael
Jan 28, 2025 â‹… 4 min read

Onlook: A React visual editor

Onlook bridges design and development, integrating design tools into IDEs for seamless collaboration and faster workflows.

Jude Miracle
Jan 27, 2025 â‹… 8 min read
View all posts

3 Replies to "Using Axios to set request headers"

  1. You have syntax errors in your examples – misplaced } with ` within template strings in both examples: axios.create and axios.interceptors.request.use

  2. I am facing Invalid Host Header..
    My vue.config.ts

    // vue.config.ts
    import { defineConfig } from ‘vite’;

    export default defineConfig({
    // Set the entry point for your application (main.ts)
    build: {
    rollupOptions: {
    input: ‘./src/main.ts’,
    },
    },
    server: {
    port: 8080,
    allowedHosts: [
    ‘courserev-dev-super-admin-dashboard-development-v-g4pfhuoefa-ue.a.run.app’,
    ],
    proxy: {
    // Add any proxy configurations if needed
    },
    },
    });

Leave a Reply