gree / gree/unity-webview

AddCustomHeader not working

Open
#529 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C++
Stars
2.7k
Forks
734
Avg merge
11h 39m
Merged PRs (30d)
1

Description

I'm trying to set a custom header for the webview, but it's not working. Custom headers are not set.
This is a sample of my code.

StartCoroutine(WebLoad("https://testapp.xyz.com"));
IEnumerator WebLoad(string Url)
{
webViewObject = (new GameObject("WebViewObject")).AddComponent();
webViewObject.AddCustomHeader("auth", PlayerPrefs.GetString("token"));
webViewObject.LoadURL(Url.Replace(" ", "%20"));
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the WebViewObject.AddCustomHeader and LoadURL entry points shown in the report, then reproduce the WebLoad example with the auth header. Done means the custom header is sent when the webview loads the requested URL; the report names no files or tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.