Comments (11)
What version of Laravel are you using?
from asset-cdn.
I am using Laravel Framework 5.5.44
from asset-cdn.
My best guess is: you need to update your config asset-cdn
--> s3
in your /config/asset-cdn.php
since you do not have a asset-cdn
disk configured in filesystems.php
from asset-cdn.
Thank you it sloved above issue.
Getting another issue.
Refused to apply style from 'https://s3.console.aws.amazon.com/s3/buckets/bpn.svr.files.public/assets/css/custom.css?region=ap-south-1' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
from asset-cdn.
"https://s3.console.aws.amazon.com/s3/buckets/bpn.svr.files.public/assets/css/custom.css?region=ap-south-1" cannot be accessed.
You need to make your bucket public
from asset-cdn.
Already make it public
from asset-cdn.
Try to access the linked file with an incognito browser. Your file is not accessible through the general internet. Please read the documentation for bucket policies on AWS. You can have private files in public buckets.
You can also add
'options' => [
'ACL' => 'public-read',
'CacheControl' => 'max-age=31536000, public',
],
to your disk config
from asset-cdn.
Ok thank you now it's working fine.
Very good package for cdn.
Thank you very much for you quick support.
from asset-cdn.
No problem. Glad your enjoying the package!
from asset-cdn.
icomoon fonts not loading..
Here is style.css file from where fonts called.
http://bpn.svr.files.public.s3.amazonaws.com/assets/css/icons/icomoon/styles.css
Access to font at 'http://bpn.svr.files.public.s3.amazonaws.com/assets/css/icons/icomoon/fonts/icomoon.woff?3p0rtw' from origin 'http://127.0.0.1:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
from asset-cdn.
The error already mentions it: you need to configure cors on your webserver / laravel application. Newer Laravel versions use this out of the box: https://github.com/fruitcake/laravel-cors
from asset-cdn.
Related Issues (13)
- readme HOT 2
- Is there Any setting so In my local load css, js and fonts etc from my local and on live server load from CDN? HOT 2
- asset_cdn with id= (cache busting) HOT 3
- Is it possible to prefix the assets in the bucket with the enviroment?
- Cloudflare cdn
- bucket namespace problem HOT 1
- Output information even if nothing is synced
- Laravel 6 Support HOT 1
- mix_cdn() and asset_cdn() does not work on production server HOT 1
- inlcude files problem HOT 4
- Laravel 7 support? HOT 2
- php artisan asset-cdn:sync not working. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asset-cdn.