but does not allow 'unsafe-inline' for scripts then browsers will produce an error when clicking on the a specific page-link in the pagination.
Refused to execute JavaScript URL because it violates the following Content Security Policy directive: script-src 'self'
The reason for this is, that the stPagination has script links in its template
href="javascript: void(0);"
According to stackoverflow this warning can not be circumvented whith sha- hashes. So the only option is to allow unsafe-inline which is less than ideal.
Proposed solution
remove the javascript: void(0); and replace it with #
When a Website uses
but does not allow 'unsafe-inline' for scripts then browsers will produce an error when clicking on the a specific page-link in the pagination.
The reason for this is, that the stPagination has script links in its template
According to stackoverflow this warning can not be circumvented whith sha- hashes. So the only option is to allow unsafe-inline which is less than ideal.
Proposed solution