Hi Team,
Problem headline :-
Recently we are facing one error in our smart GWT application launch because of newly added strict MIME type checking enabled at server configuration side.
Problem statement :
Whenever we are trying to launch the smart GWT application, it is throwing the below error at initial script execution level -
Refused to execute script from 'https://10.112.85.154/Bulkuserprovisioning/bulkuserprovisioning/sc/DataSourceLoader?dataSource=bupGridDMI,roleDMI,fileUploadDMI,sasErrorsDMI,%20pingDMI,%20currentUserDMI'because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
Our analysis statement:
When we have tried to investigate the same error, we found that the error has started to occurs after the strict MIME type checking enablement at server configuration side. So it is refusing the smart GWT reponse format application/json because the request MiME type is mismatching with response MiME type. Let me try to explain our code a bit as below.
We have one main html page in our application where we have added DataSource binding in the below script tag :
<!-- Datasource binding -->
<script src="bulkuserprovisioning/sc/DataSourceLoader?dataSource=bupGridDMI,roleDMI,fileUploadDMI,sasErrorsDMI, pingDMI, currentUserDMI"></script>
Our further investigation says we are not defining any content type here while calling DataSource in above script tag, hence the response from GWT application which is in application'json format always is having MiME type mismatching. However we have also tried different ways to provide the content type as application/json in above script calling tag but not succeed to resolve the same issue.
We are currently using SDK version 2.0. Can you please help us to find the ways to override the content type in smart GWT framework ?
Problem headline :-
Recently we are facing one error in our smart GWT application launch because of newly added strict MIME type checking enabled at server configuration side.
Problem statement :
Whenever we are trying to launch the smart GWT application, it is throwing the below error at initial script execution level -
Refused to execute script from 'https://10.112.85.154/Bulkuserprovisioning/bulkuserprovisioning/sc/DataSourceLoader?dataSource=bupGridDMI,roleDMI,fileUploadDMI,sasErrorsDMI,%20pingDMI,%20currentUserDMI'because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
Our analysis statement:
When we have tried to investigate the same error, we found that the error has started to occurs after the strict MIME type checking enablement at server configuration side. So it is refusing the smart GWT reponse format application/json because the request MiME type is mismatching with response MiME type. Let me try to explain our code a bit as below.
We have one main html page in our application where we have added DataSource binding in the below script tag :
<!-- Datasource binding -->
<script src="bulkuserprovisioning/sc/DataSourceLoader?dataSource=bupGridDMI,roleDMI,fileUploadDMI,sasErrorsDMI, pingDMI, currentUserDMI"></script>
Our further investigation says we are not defining any content type here while calling DataSource in above script tag, hence the response from GWT application which is in application'json format always is having MiME type mismatching. However we have also tried different ways to provide the content type as application/json in above script calling tag but not succeed to resolve the same issue.
We are currently using SDK version 2.0. Can you please help us to find the ways to override the content type in smart GWT framework ?
Comment