'www' - No Access-Control-Allow-Origin



  • Font from origin 'http://test.ru' has been blocked from loading by 
    Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin'
    header is present on the requested resource.
    Origin 'http://www.test.ru' is therefore not allowed access
    

    There's a website. test.ruIf you go in there like that... www.test.ru Scripts, prints, nothing on the line, tell me how to handle it.



  • Read 301 through htaccess and forget the second dome!

    RewriteCond %{HTTP_HOST} ^www\.test\.ru$
    RewriteRule (.*) http://test.ru/$1 [R=301,L]
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2