alanhamlett / CLMapper

Craigslist posts shown on a map while viewing Craigslist housing.
16 stars 6 forks source link

S.O.P. keeps markers from loading when post has different domain from current page's domain #10

Closed munick closed 12 years ago

munick commented 12 years ago

I'm on Chrome version 21.0.1180.57 CL Mapper version 1.2.0.1

To reproduce, simply go to http://sanfrancisco.craigslist.org/sfc/apa/ The map displays centered on Menlo Park and there are no markers. Move the map up to the city, still no markers. Zoom in and out, still no markers.

alanhamlett commented 12 years ago

Thanks munick. I'll fix this in the next version. For now, you can see the same info with working markers at: http://sfbay.craigslist.org/sfc/apa/

alanhamlett commented 12 years ago

This issue deals with the same origin policy. The fix will be requesting the individual post's content from the content_script.js or background page where the same origin policy isn't enforced.

https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript

alanhamlett commented 12 years ago

Fixed, but Chrome Web Store is currently having issues so unable to upload the new extension.