tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.36k stars 2.58k forks source link

Access Resources Add Referer Configuration #11728

Closed shiyanaaa closed 2 days ago

shiyanaaa commented 3 days ago

Describe the problem

Due to security issues, "Referer" authentication is added to server resources. Currently, Tauri is used to develop windows applications, but there is no way to configure the Referer of the video IMG audio tag.

Describe the solution you'd like

Be able to configure Referer, or give a solution

Alternatives considered

No response

Additional context

No response

amrbashir commented 3 days ago

did you try adding <meta name="referrer" content="always"> in your <head>?

shiyanaaa commented 3 days ago

did you try adding <meta name="referrer" content="always"> in your <head>?

Oh no, you don't understand what I mean, my resource policy is that the Referer must contain "aaa.bbb.com", but I can't do that in tarui's tag resource because the url is not "aaa.bbb.com"

amrbashir commented 2 days ago

Can you provide an example of what you mean, and an example server that I can test with?

shiyanaaa commented 2 days ago

I've solved the problem I need