XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • None

    Description

      eZ Publish seem to not have a flawless integration with the CORS Model. That model allows for the sharing of information across Domains:

      http://en.wikipedia.org/wiki/Cross-origin_resource_sharing

      Please consider the following patch, which would cater for that:

      --- extension/ezjscore/classes/ezjscserverfunctionsjs.php       2012-05-10 14:26:51.000000000 +0200
      +++ ../dev.hannover.de/extension/ezjscore/classes/ezjscserverfunctionsjs.php    2014-10-17 14:19:59.186807022 +0200
      @@ -151,7 +151,7 @@
            */
           public static function yui3io( $args )
           {
      -        $rootUrl = self::getIndexDir();
      +        $rootUrl = "//" . eZSys::hostname() . self::getIndexDir();
               return "
       YUI( YUI3_config ).add('io-ez', function( Y )
       {
      @@ -304,7 +304,7 @@
            */
           public static function jqueryio( $args )
           {
      -        $rootUrl = self::getIndexDir();
      +        $rootUrl = "//" . eZSys::hostname() . self::getIndexDir();
               return "
       (function($) {
           var _rootUrl = '$rootUrl', _serverUrl = _rootUrl + 'ezjscore/', _seperator = '@SEPERATOR$',
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: