Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用CSP过滤Java Servlet访问_Java_Jsp_Servlets_Servlet Filters_Content Security Policy - Fatal编程技术网

使用CSP过滤Java Servlet访问

使用CSP过滤Java Servlet访问,java,jsp,servlets,servlet-filters,content-security-policy,Java,Jsp,Servlets,Servlet Filters,Content Security Policy,我需要过滤对我的servlet的访问,这样它只能在另一个网站的特定框架中工作。例如,servlet url地址是www.example.com/myservlet/home,网站地址是www.example.com/website。Servlet应该只在网站框架中工作,我需要关闭对Servlet的直接访问(www.example.com/myservlet/home)。谢谢你,阿曼

我需要过滤对我的servlet的访问,这样它只能在另一个网站的特定框架中工作。例如,servlet url地址是www.example.com/myservlet/home,网站地址是www.example.com/website。Servlet应该只在网站框架中工作,我需要关闭对Servlet的直接访问(www.example.com/myservlet/home)。谢谢你,阿曼