Closed
Description
Telescope Version
5.0.1
Laravel Version
10.48.4
PHP Version
8.2
Database Driver & Version
MySQL 8
Description
Previously, there were no problems of using telescope without this attribute crossorigin="anonymous"
on link
or script
tags. But right now I found a weird problem regarding the script and styles tag if it's consumed from a CDN.
The error:
Subresource Integrity:
The resource 'https://cdn.domain.com/vendor/telescope/styles.css' has an integrity attribute, but the resource requires the request to be CORS enabled to check the integrity, and it is not. The resource has been blocked because the
integrity cannot be enforced.
What I found:
https://stackoverflow.com/questions/35323268/how-to-solve-resource-requires-the-request-to-be-cors-enabled-resource-has-bee
I think that is related with the webpack configuration on the production files in the package.
https://webpack.js.org/configuration/output/
Steps To Reproduce
Upload your assets to CDN (other domain) and then try to load from a https domain (preferably not local) and then you'll see that your telescope page does not render as expected.
Metadata
Metadata
Assignees
Labels
No labels