Coder Social home page Coder Social logo

Comments (6)

etopian avatar etopian commented on June 18, 2024

data.site.com needs a COORS policy:

 <?xml version="1.0" encoding="UTF-8"?>
 <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
     <CORSRule>
         <AllowedOrigin>*</AllowedOrigin>
         <AllowedMethod>HEAD</AllowedMethod>
         <AllowedMethod>GET</AllowedMethod>
         <AllowedMethod>PUT</AllowedMethod>
         <AllowedMethod>POST</AllowedMethod>
         <AllowedMethod>DELETE</AllowedMethod>
         <ExposeHeader>ETag</ExposeHeader>
         <ExposeHeader>x-amz-meta-title</ExposeHeader>
         <ExposeHeader>x-amz-meta-label</ExposeHeader>
         <AllowedHeader>*</AllowedHeader>
     </CORSRule>
 </CORSConfiguration>
</xml>

from dodgercms.

ChrisZieba avatar ChrisZieba commented on June 18, 2024

Try this IAM Policy instead

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1427944232000",
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:GetObject",
                "s3:DeleteObject",
                "s3:PutObject",
                "s3:GetBucketWebsite",
                "s3:PutBucketWebsite",
                "s3:DeleteBucketWebsite",
                "s3:GetBucketLogging",
                "s3:GetBucketVersioning",
                "s3:GetBucketLocation"
            ],
            "Resource": [
                "arn:aws:s3:::data.site.com",
                "arn:aws:s3:::data.site.com/*",
                "arn:aws:s3:::assets.site.com",
                "arn:aws:s3:::assets.site.com/*",
                "arn:aws:s3:::site.com",
                "arn:aws:s3:::site.com/*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": "sts:GetFederationToken",
            "Resource": "*"
        }
    ]
}

from dodgercms.

etopian avatar etopian commented on June 18, 2024

See above, it needs COORS... update your documentation in the data.dodgercms.com section.

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
     <CORSRule>
         <AllowedOrigin>*</AllowedOrigin>
         <AllowedMethod>HEAD</AllowedMethod>
         <AllowedMethod>GET</AllowedMethod>
         <AllowedMethod>PUT</AllowedMethod>
         <AllowedMethod>POST</AllowedMethod>
         <AllowedMethod>DELETE</AllowedMethod>
         <ExposeHeader>ETag</ExposeHeader>
         <ExposeHeader>x-amz-meta-title</ExposeHeader>
         <ExposeHeader>x-amz-meta-label</ExposeHeader>
         <AllowedHeader>*</AllowedHeader>
     </CORSRule>
</CORSConfiguration>

from dodgercms.

ChrisZieba avatar ChrisZieba commented on June 18, 2024

Thanks, I updated the docs.

from dodgercms.

etopian avatar etopian commented on June 18, 2024

Great project by the way, thanks for the hard work. Exactly what I wanted.

from dodgercms.

danielfive avatar danielfive commented on June 18, 2024

Getting a 403 error when trying to access manager.site.com/login
Screenshot

@ChrisZieba @etopian

from dodgercms.

Related Issues (9)

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.