Skip to content

[bug] About custom referer request header #14278

@wayddmldbzz

Description

@wayddmldbzz

Describe the bug

Since the Tauri packaged page loads at tauri://, I placed an iframe within this page. To ensure same-origin authentication, I configured the iframe's URL to begin with tauri:// and used a forwarding solution to ensure proper functionality. However, I'm currently experiencing a problem. Because the iframe's URL begins with the custom protocol tauri://, requests sent from the page don't include a referrer header.
I've already tried setting <meta name="referrer" content="unsafe-url"> on the ifame page and adding referrerpolicy="unsafe-url" to the iframe tag, but I still don't see a referrer header in the RESTful requests I send.

How can I set a custom referrer while ensuring same-origin authentication, or have it send a referrer instead of not sending one?

Reproduction

No response

Expected behavior

No response

Full tauri info output

There is no log for this issue

Stack trace


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions