Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I haven't worked with a Heroku setup, but AFAIK (and as illustrated at <a href="https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS#Access-Control-Allow-Origin" rel="noreferrer">developer.mozilla.org</a>), the header <code>Access-Control-Allow-Origin</code> should reflect a value of the domain which <em>consumes</em> static assets from the CDN.</p> <p>E.g.: For a website hosted at <a href="http://mydomain.net" rel="noreferrer">http://mydomain.net</a> and consuming assets from <a href="http://wefe342r34r23.cloudfront.net" rel="noreferrer">http://wefe342r34r23.cloudfront.net</a></p> <p><code>headers['Access-Control-Allow-Origin'] = 'http://mydomain.net'</code></p> <p>Will allow mydomain.net to access assets via <a href="http://wefe342r34r23.cloudfront.net" rel="noreferrer">http://wefe342r34r23.cloudfront.net</a>. In other words, replacing <code>CDN_CLOUDFRONT</code> with your website's domain name should solve the problem.</p> <p>Hope this helps.</p> <p>P.S.: I'm not sure how your setup worked until yesterday. :)</p> <p>P.P.S: Adding <em>Alternate Domain Names (CNAMEs)</em> to your CDN will help you in a scenario wherein you want to quickly discard an existing distribution exposed over <a href="http://xxx.cloudfront.net" rel="noreferrer">http://xxx.cloudfront.net</a> and start using a fresh distribution <a href="http://yyy.cloudfront.net" rel="noreferrer">http://yyy.cloudfront.net</a>. You won't need to change anything in your application codebase if you are using an <em>Alternate Domain Name</em> such as <a href="http://cdn.mydomain.net" rel="noreferrer">http://cdn.mydomain.net</a> in that case.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload