Skip to content

gwuhaolin/axios-chrome-messaging-adapter2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For CORS request in chrome extensions,support chrome edge firefox.

Quick start

In your background script:

// register the adapter message hanlder
import 'axios-chrome-messaging-adapter2';

In your content script:

import axios from 'axios'
import { adapter } from 'axios-chrome-messaging-adapter2'

// tell axios to use the adapter for this request
const axiosInstance = axios.create({
  adapter,
  ... // the rest of your configuration :)
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published