gree / gree/unity-webview

Sending custom headers every request (even resource request)

Open
#841 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

Hi.

First of all thank you for this wonderful project.
I was wondering while webview sends initial request with custom headers set with functions
SetBasicAuthInfo(username, password);
AddCustomHeader("Authorization", Helpers.Base64Encode(username, password));

It sends only initial request with custom headers but not resource requests in turn while i successfuly get authenticated to website i fail to download critical resources like javascripts. I understand there is a way to override shouldInterceptRequest but i dont know how and i wonder if there is already built in such override that put custom headers to resource request?

I hope you understand me and sorry for any unclarity.

Regards!

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 by tracing the SetBasicAuthInfo and AddCustomHeader calls and the shouldInterceptRequest override mentioned in the issue. Determine how initial and resource requests are handled and whether the requested header behavior has a defined integration point. Done means the expected handling of custom headers on resource requests is established and verifiable.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, objective-c, unity
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.