Skip to content
Discussion options

You must be logged in to vote

Hi @rsudworth

There is purposefully no backdoor reset for this. However when I've accidentally locked myself out before I've used a browser extension called "Disable Content-Security-Policy" to get around this:

Also if you want a temporary code fix, you could reset it like so:

// Inject ICspSettingsService as cspSettingsService
var currentSettings = await cspSettingsService.GetAsync();
currentSettings.IsReportOnly = true;
await cspSettingsService.SaveAsync(currentSettings, "My Name");

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rsudworth
Comment options

Answer selected by GeekInTheNorth
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants