0.1.2 • Published 8 months ago
axios-tauri-fetch-adapter v0.1.2
axios-tauri-fetch-adapter
Makes it easy to use Axios in Tauri App, Adapted for Tauri App 2.0.0
Installation
npm install axios-tauri-fetch-adapter
Usage
TypeScript / JavaScript
import axios from 'axios'
import axiosTauriApiAdapter from 'axios-tauri-fetch-adapter'
const client = axios.create({ adapter: axiosTauriFetchAdapter })
Tauri App
Configure the allowed URLs Tauri App HTTP client
{
"permissions": [
{
"identifier": "http:default",
"allow": [{ "url": "https://*.tauri.app" }],
"deny": [{ "url": "https://private.tauri.app" }]
}
]
}
License
MIT