Re: Django-cms + Wymeditor + Heroku + AWS s3 + Cors

2013-09-08 Thread Dig
I don't think it's a django question. For security reasons, HTTP browser
will block access resources in a different site(domain) by AJAX request.
You should add Access-Control-Allow-Origin and Access-Control-Allow-Methods
headers (response for OPTION request) to declar your willings.
On Sep 8, 2013 6:29 AM, "Zach Frank"  wrote:

> Having same problem.. did you figure anything out?
>
> Z
>
> On Thursday, October 11, 2012 12:57:30 PM UTC-5, Matteo Suppo wrote:
>>
>> I found this: http://comments.gmane.**org/gmane.comp.python.django.**
>> django-cms/1202
>>
>> and I decided to use tinymce for now. It's not solved though. I will do
>> something, maybe.
>>
>> On Thursday, October 11, 2012 7:25:19 PM UTC+2, Matteo Suppo wrote:
>>>
>>> Ok, here's a fun one.
>>>
>>> I set up a django installation on Heroku, added the django-cms app,
>>> deployed on heroku, and collected the static files on AWS.
>>>
>>> The problem is Django-CMS tries to load the js file for the wymeditor
>>> but AWS says:
>>>
>>> MLHttpRequest cannot load https://s3.amazonaws.com/[...]**
>>> /cms/js/wymeditor/skins/**django/skin.js.
>>> Origin [...] is not allowed by Access-Control-Allow-Origin.
>>>
>>> I actually searched a lot, and discovered this: http://docs.**
>>> amazonwebservices.com/**AmazonS3/latest/dev/cors.html
>>>
>>> Seems like a solution, but even if I activated it, nothing works.
>>>
>>> I'm at loss. It should work but it doesn't. Am I missing something here?
>>> Maybe it doesn't work the way I thought? Should I ask AWS directly?
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django-cms + Wymeditor + Heroku + AWS s3 + Cors

2013-09-07 Thread Zach Frank
Having same problem.. did you figure anything out?

Z

On Thursday, October 11, 2012 12:57:30 PM UTC-5, Matteo Suppo wrote:
>
> I found this: 
> http://comments.gmane.org/gmane.comp.python.django.django-cms/1202
>
> and I decided to use tinymce for now. It's not solved though. I will do 
> something, maybe.
>
> On Thursday, October 11, 2012 7:25:19 PM UTC+2, Matteo Suppo wrote:
>>
>> Ok, here's a fun one.
>>
>> I set up a django installation on Heroku, added the django-cms app, 
>> deployed on heroku, and collected the static files on AWS.
>>
>> The problem is Django-CMS tries to load the js file for the wymeditor but 
>> AWS says:
>>
>> MLHttpRequest cannot load 
>> https://s3.amazonaws.com/[...]/cms/js/wymeditor/skins/django/skin.js. 
>> Origin [...] is not allowed by Access-Control-Allow-Origin.
>>
>> I actually searched a lot, and discovered this: 
>> http://docs.amazonwebservices.com/AmazonS3/latest/dev/cors.html
>>
>> Seems like a solution, but even if I activated it, nothing works.
>>
>> I'm at loss. It should work but it doesn't. Am I missing something here? 
>> Maybe it doesn't work the way I thought? Should I ask AWS directly?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django-cms + Wymeditor + Heroku + AWS s3 + Cors

2013-09-07 Thread Zach Frank
Having this same problem... did you fix it? I'm using heroku, django-cms, 
s3 for static files and i'm getting the same domain origin error.. any new 
insights appreciated.

Z

On Thursday, October 11, 2012 12:57:30 PM UTC-5, Matteo Suppo wrote:
>
> I found this: 
> http://comments.gmane.org/gmane.comp.python.django.django-cms/1202
>
> and I decided to use tinymce for now. It's not solved though. I will do 
> something, maybe.
>
> On Thursday, October 11, 2012 7:25:19 PM UTC+2, Matteo Suppo wrote:
>>
>> Ok, here's a fun one.
>>
>> I set up a django installation on Heroku, added the django-cms app, 
>> deployed on heroku, and collected the static files on AWS.
>>
>> The problem is Django-CMS tries to load the js file for the wymeditor but 
>> AWS says:
>>
>> MLHttpRequest cannot load 
>> https://s3.amazonaws.com/[...]/cms/js/wymeditor/skins/django/skin.js. 
>> Origin [...] is not allowed by Access-Control-Allow-Origin.
>>
>> I actually searched a lot, and discovered this: 
>> http://docs.amazonwebservices.com/AmazonS3/latest/dev/cors.html
>>
>> Seems like a solution, but even if I activated it, nothing works.
>>
>> I'm at loss. It should work but it doesn't. Am I missing something here? 
>> Maybe it doesn't work the way I thought? Should I ask AWS directly?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django-cms + Wymeditor + Heroku + AWS s3 + Cors

2012-10-11 Thread Matteo Suppo
I found this: 
http://comments.gmane.org/gmane.comp.python.django.django-cms/1202

and I decided to use tinymce for now. It's not solved though. I will do 
something, maybe.

On Thursday, October 11, 2012 7:25:19 PM UTC+2, Matteo Suppo wrote:
>
> Ok, here's a fun one.
>
> I set up a django installation on Heroku, added the django-cms app, 
> deployed on heroku, and collected the static files on AWS.
>
> The problem is Django-CMS tries to load the js file for the wymeditor but 
> AWS says:
>
> MLHttpRequest cannot load 
> https://s3.amazonaws.com/[...]/cms/js/wymeditor/skins/django/skin.js. 
> Origin [...] is not allowed by Access-Control-Allow-Origin.
>
> I actually searched a lot, and discovered this: 
> http://docs.amazonwebservices.com/AmazonS3/latest/dev/cors.html
>
> Seems like a solution, but even if I activated it, nothing works.
>
> I'm at loss. It should work but it doesn't. Am I missing something here? 
> Maybe it doesn't work the way I thought? Should I ask AWS directly?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/4YPceJ2PwyoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django-cms + Wymeditor + Heroku + AWS s3 + Cors

2012-10-11 Thread Matteo Suppo
Apparently with Firefox I don't have the CORS problem. It doesn't work 
either but at least it's a different error message:

Error: Permission denied to access property 'styleSheets'

styles = this._doc.styleSheets[0];

that brought me to this: 
http://stackoverflow.com/questions/2206586/wymeditor-across-subdomains-cross-site-permission-issue

Hmm I'll try it


On Thursday, October 11, 2012 7:25:19 PM UTC+2, Matteo Suppo wrote:
>
> Ok, here's a fun one.
>
> I set up a django installation on Heroku, added the django-cms app, 
> deployed on heroku, and collected the static files on AWS.
>
> The problem is Django-CMS tries to load the js file for the wymeditor but 
> AWS says:
>
> MLHttpRequest cannot load 
> https://s3.amazonaws.com/[...]/cms/js/wymeditor/skins/django/skin.js. 
> Origin [...] is not allowed by Access-Control-Allow-Origin.
>
> I actually searched a lot, and discovered this: 
> http://docs.amazonwebservices.com/AmazonS3/latest/dev/cors.html
>
> Seems like a solution, but even if I activated it, nothing works.
>
> I'm at loss. It should work but it doesn't. Am I missing something here? 
> Maybe it doesn't work the way I thought? Should I ask AWS directly?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ejalT2r8CbUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django-cms + Wymeditor + Heroku + AWS s3 + Cors

2012-10-11 Thread Matteo Suppo
Ok, here's a fun one.

I set up a django installation on Heroku, added the django-cms app, 
deployed on heroku, and collected the static files on AWS.

The problem is Django-CMS tries to load the js file for the wymeditor but 
AWS says:

MLHttpRequest cannot load 
https://s3.amazonaws.com/[...]/cms/js/wymeditor/skins/django/skin.js. 
Origin[...] is not allowed by Access-Control-Allow-Origin.

I actually searched a lot, and discovered this: 
http://docs.amazonwebservices.com/AmazonS3/latest/dev/cors.html

Seems like a solution, but even if I activated it, nothing works.

I'm at loss. It should work but it doesn't. Am I missing something here? 
Maybe it doesn't work the way I thought? Should I ask AWS directly?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/X4aoCq5rnGEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.