Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why can't I listen to my iframe's network requests #1467

Open
CrazyXi opened this issue Apr 17, 2024 · 0 comments
Open

Why can't I listen to my iframe's network requests #1467

CrazyXi opened this issue Apr 17, 2024 · 0 comments

Comments

@CrazyXi
Copy link

CrazyXi commented Apr 17, 2024

Why can't I listen to my iframe's network requests

func listenForNetworkEvent(ctx context.Context) {
	chromedp.ListenTarget(ctx, func(ev interface{}) {
		switch ev := ev.(type) {
		case *network.EventResponseReceived:
			fmt.Println(ev.Response.URL)
		}
	})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant