S
S
studentLesson2021-09-21 11:36:10
Node.js
studentLesson, 2021-09-21 11:36:10

How to disable localStorage in Chromium based browsers using the global object?

Good afternoon! Please tell me how you can simulate the shutdown of local storage using the global. The fact is that when testing a certain module, I need to completely disable the local storage, as if it were done by the user in the browser. Headless Chromium is used as a virtual browser, and the puppeteer library is used to control the browser . But looking into the methods of the object, globalI did not find such a property. Are there any thoughts on this? Maybe there are options without a global object? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question