0

In Ajax call it always gives

XMLHttpRequest cannot load https://misfitlondon.co.uk/rubymage/default/login/. Request header field X-Prototype-Version is not allowed by Access-Control-Allow-Headers in preflight response.

Before 1 hour it does work fine https://misfitlondon.co.uk. Have any one idea why this happening.

I did'nt change any code in any file except styles.css.

Thanks

0

This usually happens when you're trying to do an Ajax request from a HTTPS to a HTTP URL, but looking at the error log this is not the case. Did you make any other changes (for example server settings?). It could be that the server and JS headers don't match.

More info here:

No 'Access-Control-Allow-Origin' header in jquery ajax in magento site

https://stackoverflow.com/questions/35232130/request-header-field-access-control-allow-headers-is-not-allowed-by-access-contr

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.