zinor Posted March 7, 2016 Share Posted March 7, 2016 Hi i got this error when editing products in BO . index.php?controller=AdminProducts&id_product=958&updateproduct&token=769e254……:1 XMLHttpRequest cannot load http://www.mydomain/index.php?controller=AdminProducts&toke…action=Attachments&updateproduct&ajax=1&rand=1457345318849&_=1457345310680. The 'Access-Control-Allow-Origin' header has a value 'http://mydomain.com/' that is not equal to the supplied origin. Origin 'http://mydomain.com' is therefore not allowed access. can anyone help me ? thanks Link to comment Share on other sites More sharing options...
tomerg3 Posted March 7, 2016 Share Posted March 7, 2016 You should make sure you connect to the backoffice using the EXACT URL defined in your Preferences->SEO&URL page If it's defined with www. then you must use www.xyz to connect to the backoffice Link to comment Share on other sites More sharing options...
zinor Posted March 8, 2016 Author Share Posted March 8, 2016 You should make sure you connect to the backoffice using the EXACT URL defined in your Preferences->SEO&URL page If it's defined with www. then you must use www.xyz to connect to the backoffice i did that but without any change . in fact in the seo & URL page i used www. but in the BO without www. so i used www. in the BO but without any change ! also i deleted www. in that part and connect to the BO without www. but without any chance . Link to comment Share on other sites More sharing options...
tomerg3 Posted March 8, 2016 Share Posted March 8, 2016 Can you post a complete screenshot of the browser (URL + error console) Link to comment Share on other sites More sharing options...
zinor Posted March 9, 2016 Author Share Posted March 9, 2016 Can you post a complete screenshot of the browser (URL + error console) the error which is shown in BO is as follow A server error occurred while loading the tabs: some tabs could not be loaded. Please try again by refreshing the page.If you are still encountering this problem, please check your server logs or contact your hosting provider for assistance. but when i press Ctrl+Shift+i/j in Chrome to see the error then i will be guided at below index.php?controller=AdminProducts&id_product=958&updateproduct&token=769e254……:1 XMLHttpRequest cannot loadhttp://www.mydomain/...inProducts…action=Attachments&updateproduct&ajax=1&rand=1457345318849&_=1457345310680. The 'Access-Control-Allow-Origin' header has a value 'http://mydomain.com/' that is not equal to the supplied origin. Origin 'http://mydomain.com' is therefore not allowed access. Link to comment Share on other sites More sharing options...
tomerg3 Posted March 9, 2016 Share Posted March 9, 2016 As you can see, the site is trying to make a call to www.mydomain, look for where that call is made, and make sure it uses the correct URL Link to comment Share on other sites More sharing options...
zinor Posted March 13, 2016 Author Share Posted March 13, 2016 As you can see, the site is trying to make a call to www.mydomain, look for where that call is made, and make sure it uses the correct URL for sure if i could then i did , the matter is i could not . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now