Posts

Converting an angular project to a maven web application

Image
up vote -1 down vote favorite As part of addressing click hijacking vulnerability, we added CSP's frame-ancestors header as a meta tag in angular's index.html page. But this did not work. Upon researching we came to know that frame-ancestors cannot be added as meta tag and should be returned as a http header from the server. We have two options. Write a Http Filter and add CSP header to the response. Configure the webserver to add the CSP header to every response. Our architects and the server team decided to go with the first option. As part of the solution, we have manually built the angular application, copied the resources under dist directory to a maven web application, added the CSP filter in the web application and served the application. Thus fixing the click hijacking vulnerability. Now we need a solutio...

Noise in headphones after sleep

Image
up vote 0 down vote favorite Every time after sleep headphones start to make noise and I have to restart OS to fix it. What is the problem and How to fix it? Thanks. OS: Ubuntu 18.04.1 sound alsa headphones share | improve this question asked Nov 16 at 18:23 Ali Rasooli 23 5 add a comment  |  up vote 0 down vote favorite ...