Print/Export not working for some urls
Posted: Thu Mar 04, 2021 5:17 am
Hello,
We are using Stimulsoft for print/export report.
but we have 2 types of URL in our application. i.e.,
http://localhost/mymachine.web/demo#/myworkspace and http://localhost/mymachine.web/#/myworkspace
so what I observed is print/export working with http://localhost/mymachine.web/#/myworkspace this url and whenever try to Print/Export report using http://localhost/mymachine.web/demo#/myworkspace this URL it refreshes the screen and change the url to http://localhost/mymachine.web/#/myworkspace and then it works.
I speculate that due to recently added changes in web.config could be the reason.
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<remove name="X-XSS-Protection" />
<remove name="X-Frame-Options" />
<remove name="X-Content-Type-Options" />
<remove name="Cache-Control" />
<add name="X-Frame-Options" value="SAMEORIGIN" />
<add name="X-XSS-Protection" value="1; mode=block"></add>
<add name="X-Content-Type-Options" value="nosniff" />
<add name="Cache-Control" value="no-store" />
<add name="Content-Security-Policy" value="default-src 'none'; frame-src 'self'; img-src 'self' data: blob: 'unsafe-inline'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src 'self' blob:;font-src 'self' https://fonts.gstatic.com; style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com" />
</customHeaders>
</httpProtocol>
However no error in console and on networks tab.
Please let me know how to make the Print/Export working for both the URLs.
We are using Stimulsoft for print/export report.
but we have 2 types of URL in our application. i.e.,
http://localhost/mymachine.web/demo#/myworkspace and http://localhost/mymachine.web/#/myworkspace
so what I observed is print/export working with http://localhost/mymachine.web/#/myworkspace this url and whenever try to Print/Export report using http://localhost/mymachine.web/demo#/myworkspace this URL it refreshes the screen and change the url to http://localhost/mymachine.web/#/myworkspace and then it works.
I speculate that due to recently added changes in web.config could be the reason.
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<remove name="X-XSS-Protection" />
<remove name="X-Frame-Options" />
<remove name="X-Content-Type-Options" />
<remove name="Cache-Control" />
<add name="X-Frame-Options" value="SAMEORIGIN" />
<add name="X-XSS-Protection" value="1; mode=block"></add>
<add name="X-Content-Type-Options" value="nosniff" />
<add name="Cache-Control" value="no-store" />
<add name="Content-Security-Policy" value="default-src 'none'; frame-src 'self'; img-src 'self' data: blob: 'unsafe-inline'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src 'self' blob:;font-src 'self' https://fonts.gstatic.com; style-src-elem 'self' 'unsafe-inline' https://fonts.googleapis.com" />
</customHeaders>
</httpProtocol>
However no error in console and on networks tab.
Please let me know how to make the Print/Export working for both the URLs.