Appex: Cross-Origin Resource Sharing policy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Appex: Cross-Origin Resource Sharing policy

Maarten Mostert-2
Hi,

I use the fontello font (MIT license) with Appex that I declare in the following way within my CSS headers.

headBootStrapCCS
<head: 199>

^<    

!-- Font Awesome CSS -->
<!-- Fontello CSS -->


For the Fontello font (MIT license) I cannot find a CDN provider.

However this gives the following CROS warnings within Chrome’s developer window.


Any hint is welcome.

Regards,

@+Maarten

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Appex: Cross-Origin Resource Sharing policy

Paul DeBruicker
See https://en.wikipedia.org/wiki/Cross-origin_resource_sharing.


You need to add a response header to your application, either in the image or if you're using apache or nginx at the webserver level to explicitly allow the fonts you want to load to be loaded.  


Fonts and Javascript are restricted because they can do Nasty Things.


so in your image:

html requestContext response headerAt: 'Access-Control-Allow-Origin' put: 'http://example.com'




Maarten Mostert-2 wrote
Hi,

I use the fontello font (MIT license) with Appex that I declare in the following way within my CSS headers.

headBootStrapCCS
        <head: 199>

                ^<    

                !-- Font Awesome CSS -->
                 <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css <http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css>" rel="stylesheet">
               
                <link href=« http://stakepoint.com/fonts/fontello/css/fontello.css <http://stakepoint.com/fonts/fontello/css/fontello.css>" rel="stylesheet">


For the Fontello font (MIT license) I cannot find a CDN provider.

However this gives the following CROS warnings within Chrome’s developer window.

https://www.dropbox.com/s/bfsn6176qvfj9wl/2015-03-03_11-38-08.png?dl=0 <https://www.dropbox.com/s/bfsn6176qvfj9wl/2015-03-03_11-38-08.png?dl=0>

Any hint is welcome.

Regards,

@+Maarten
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Appex: Cross-Origin Resource Sharing policy

Maarten Mostert-2
Thanks,
In affect the following this without problem.

Regards,

@+Maarten,

Le 3 mars 2015 à 18:17, Paul DeBruicker <[hidden email]> a écrit :

See https://en.wikipedia.org/wiki/Cross-origin_resource_sharing.


You need to add a response header to your application, either in the image
or if you're using apache or nginx at the webserver level to explicitly
allow the fonts you want to load to be loaded.  


Fonts and Javascript are restricted because they can do Nasty Things.


so in your image:

html requestContext response headerAt: 'Access-Control-Allow-Origin' put:
'http://example.com'





Maarten Mostert-2 wrote
Hi,

I use the fontello font (MIT license) with Appex that I declare in the
following way within my CSS headers.

headBootStrapCCS

<head: 199>
^<    

!-- Font Awesome CSS -->
&lt;link
href=&quot;http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
&lt;http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css&gt;"
rel="stylesheet">



<link href=« http://stakepoint.com/fonts/fontello/css/fontello.css
<http://stakepoint.com/fonts/fontello/css/fontello.css>
" rel="stylesheet">


For the Fontello font (MIT license) I cannot find a CDN provider.

However this gives the following CROS warnings within Chrome’s developer
window.

https://www.dropbox.com/s/bfsn6176qvfj9wl/2015-03-03_11-38-08.png?dl=0
&lt;https://www.dropbox.com/s/bfsn6176qvfj9wl/2015-03-03_11-38-08.png?dl=0&gt;

Any hint is welcome.

Regards,

@+Maarten
_______________________________________________
seaside mailing list

seaside@.squeakfoundation

http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside





--
View this message in context: http://forum.world.st/Appex-Cross-Origin-Resource-Sharing-policy-tp4809124p4809268.html
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside