关于mvnForum出现异常:The referer of request is not in trusted domains. Please configure mvncore.xml.
要解决这个问题,只需编辑WEB-INF/classes/mvncore.xml文件,在以下元素加上自己的url即可:
要解决这个问题,只需编辑WEB-INF/classes/mvncore.xml文件,在以下元素加上自己的url即可:
<!--
If you want to allow only referers from your trusted domains, just config it here
Each domain is separated with a character ';'
Example: to allow only mvnforum.com and www.mvnforum.com domain,
set it as below:
<allow_http_referer_prefix_list>http://mvnforum.com;http://www.mvnforum.com</allow_http_referer_prefix_list>
-->
<allow_http_referer_prefix_list>http://localhost:8080;http://127.0.0.1:8080;http://localhost</allow_http_referer_prefix_list>