Editor CDN issue

7 posts, 0 answers
  1. lan luo
    lan luo avatar
    36 posts
    Member since:
    May 2010

    Posted 08 Jan Link to this post

    Hi Telerik team,

    When we enable Skin CDN server, the editor throws "Cross-Origin Request Blocked" error in "Insert external video" popup windows. We have added settings in the web.config on our production server and CDN server. Is there anything we missing?

     <httpProtocol>
              <customHeaders>
                        <add name="X-Powered-By-Server" value="150" />
                        <add name="Access-Control-Allow-Origin" value="*" />
                        <add name="access-control-allow-headers" value="*" />
              </customHeaders>
    </httpProtocol>

     

    Please check the attachment for more detail.

    Thanks in advance,

     

    Lan

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 12 Jan Link to this post

    Hello Lan,

    I tested the same scenario locally, but to no avail. Resources are loaded properly with the 2015.3.930 version. You can see the results on my end via this screencast—http://screencast.com/t/Mc2PnXmOwjB.

    Is the dialog customized somehow? 

    Regards,
    Ianko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. lan luo
    lan luo avatar
    36 posts
    Member since:
    May 2010

    Posted 14 Jan in reply to Ianko Link to this post

    Hi lanko,

    Could you please send me the zip file of the test project? I try to compare what's the difference between your project and my project.

    Thanks in advance,

    Lan

  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 15 Jan Link to this post

    Hello,

    You can find the project attached. 

    Regards,
    Ianko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. lan luo
    lan luo avatar
    36 posts
    Member since:
    May 2010

    Posted 15 Jan Link to this post

    Hi Lanko,

    Thanks for replying so fast. I believe I didn't say it very clear from my previous post. We have our own CDN server and we enable CDN and base url is point to our CDN server.

    I changed your code by changing to our CDN server. It has the same problem as before. Could you please take a look?

    Changes I made 

    Web.Config

    adding following in <system.webServer> section

     <httpProtocol>
          <customHeaders>
            <add name="Access-Control-Allow-Origin" value="*" />
          </customHeaders>
        </httpProtocol>

     

    Default.aspx:

     

    <telerik:RadScriptManager runat="server" ID="scriptmanager" EnableCdn="true" CdnSettings-BaseUrl="http://radscriptcdn.sharpschool.com" CdnSettings-BaseSecureUrl="https://radscriptcdn.sharpschool.com" ></telerik:RadScriptManager>

            <telerik:RadStyleSheetManager runat="server" ID="styleSheetManager" CdnSettings-TelerikCdn="Enabled" CdnSettings-BaseSecureUrl="http://radskincdn.sharpschool.com" CdnSettings-BaseUrl="https://radskincdn.sharpschool.com" ></telerik:RadStyleSheetManager>

     

    Thanks,

    Lan

     

  7. lan luo
    lan luo avatar
    36 posts
    Member since:
    May 2010

    Posted 15 Jan Link to this post

    Hi Lanko,

    I also change the Telerik dll to our 2015.3.930.40 version.

    Thanks,

    Lan

  8. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 18 Jan Link to this post

    Hi Lan,

    I suggest you to examine why using this particular custom CDN fails to load the font through SSL connection.

    Also, as you can see the resource is requested from a non-SSL URL and thus, causing the cross-site access problem. So you should see why in an SSL-enabled connection, the resource is not handled properly. Note that in the configuration provided, the CdnSettings-BaseSecureUrl property is set to a non SSL URL. Try if correcting this resolves the issue.

    With the Telerik CDN, using SSL, requests are properly handled and I am not sure what it might fail with using a custom one.

    Regards,
    Ianko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017