AddCustomHeader not working
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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