These are chat archives for locomotivecms/v3

2nd
Jul 2017
S Tunji Turner
@stunjiturner
Jul 02 01:45
@manu the requesting server is getting a CORS error the host is nt allowed is not allowed by Access-Control-Allow-Origin.
S Tunji Turner
@stunjiturner
Jul 02 02:08
I am deployed to heroku
Manu
@manuchap
Jul 02 08:12
Try this cors config in your s3 bucket:
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedMethod>GET</AllowedMethod>
    <AllowedMethod>POST</AllowedMethod>
    <AllowedMethod>PUT</AllowedMethod>
    <AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
S Tunji Turner
@stunjiturner
Jul 02 11:35
i already have the above as a bucket policy, its a problem with heroku / server side and the javascript fetch api
S Tunji Turner
@stunjiturner
Jul 02 17:29
@did really stuck with the CORS issse with the server on heroku, can i just add the middleware rack:cors to the config/application.rb just like any existing application
S Tunji Turner
@stunjiturner
Jul 02 17:50
@did i fixed the CORS issue, but the the JSON beinf vended by my Locomotive Engine cannot be read by the javascript fetch api, cause the formatting of the server side json is invalid??
Thanks