留言板

Web logic + chrome strict MIME type issue

thumbnail
krishna mohan mathakala,修改在7 年前。

Web logic + chrome strict MIME type issue

Junior Member 帖子: 68 加入日期: 12-9-8 最近的帖子
We may get below error while running the liferay on web logic.
Refused to execute script from 'URL(www.xyz.com)' because its MIME type ('') is not executable, and strict MIME type checking is enabled.

create a file with name "mimemappings.properties" in the following location

/Users/machine name/Oracle/Middleware/user_projects/domains/domain name/config

Restart server.
thumbnail
Byrån Zaugg,修改在7 年前。

RE: Web logic + chrome strict MIME type issue

Expert 帖子: 252 加入日期: 12-4-6 最近的帖子
If you are trying to deliver a JavaScript file to the browser, it must have the correct MIME type set (server level), or the browser sees it as a security vulnerability.