# Rake uploads:migrate\_to\_s3 error

**URL:** <https://meta.discourse.org/t/rake-uploads-migrate-to-s3-error/137806>\
**Category:** Self-hosting\
**Tags:** s3\
**Created:** [January 5, 2020, 11:08am UTC](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-error/137806 "2020-01-05T11:08:29Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![wanghaisheng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wanghaisheng/32/163707_2.png) [@wanghaisheng](https://meta.discourse.org/u/wanghaisheng)\
**Post date:** [January 6, 2020, 9:06am UTC](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-error/137806/9 "2020-01-06T09:06:41Z")

</div>

it seems i use **Fortify** in cloudflare for  
`Nine out of ten doctors agree that [Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [HSTS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security), and [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) Headers are part of a well-balanced breakfast.`  
and just add s3 to header like this ,woola

```plaintext
Access-Control-Allow-Origin: https://bbs.antivte.com
Content-Security-Policy: default-src 'self' *.amazonaws.com google-analytics.com

```

---

_[View the full topic](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-error/137806)._
