Giter VIP home page Giter VIP logo

Comments (11)

arubacao avatar arubacao commented on June 7, 2024

What version of Laravel are you using?

from asset-cdn.

jayeshcspl avatar jayeshcspl commented on June 7, 2024

I am using Laravel Framework 5.5.44

from asset-cdn.

arubacao avatar arubacao commented on June 7, 2024

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.

jayeshcspl avatar jayeshcspl commented on June 7, 2024

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.

arubacao avatar arubacao commented on June 7, 2024

"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.

jayeshcspl avatar jayeshcspl commented on June 7, 2024

Already make it public

from asset-cdn.

arubacao avatar arubacao commented on June 7, 2024

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.

jayeshcspl avatar jayeshcspl commented on June 7, 2024

Ok thank you now it's working fine.
Very good package for cdn.
Thank you very much for you quick support.

from asset-cdn.

arubacao avatar arubacao commented on June 7, 2024

No problem. Glad your enjoying the package!

from asset-cdn.

jayeshcspl avatar jayeshcspl commented on June 7, 2024

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.

arubacao avatar arubacao commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.