Closed shiyanaaa closed 3 days ago
import { fetch } from '@tauri-apps/plugin-http'; const defaultConfig={ method:"GET", headers:{ "Referer":"https://my.web.com/", "Origin":"https://my.web.com/" }, data:{}, ...config } return fetch(url,defaultConfig)
I have a web application that I want to port to windows and Android without changing any backend interfaces, but there is Referer authentication in the interface, so I use @tauri-apps/plugin-http, but I can't change the request headers
No response
tauri info
none
and I set tauri-plugin-http = { version = "2", features = ["unsafe-headers"] }
Describe the bug
import { fetch } from '@tauri-apps/plugin-http'; const defaultConfig={ method:"GET", headers:{ "Referer":"https://my.web.com/", "Origin":"https://my.web.com/" }, data:{}, ...config } return fetch(url,defaultConfig)
I have a web application that I want to port to windows and Android without changing any backend interfaces, but there is Referer authentication in the interface, so I use @tauri-apps/plugin-http, but I can't change the request headers
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response