I have now spent hours trying to find a solution, I cannot GET anything from this link: https://developer.mozilla.org/en-US/search.json
My exercise (extra credit) is to GET information from that site using AJAX. In Chrome under response header it says 'Allow:GET'. That's what I have been trying to do. I understand that pre-flight is an 'OPTION' and its not supported by that link since it gives me the 405 error.
I am completely lost and the previous answer someone gave didn't work. I understand I can install a plugin to get around it. But I wanted to know if there is a way for it to work just with code. I am afraid that it wont work on someone else's computer just because they don't have that plug in.
This is the error I get:
XMLHttpRequest cannot load
https://developer.mozilla.org/en-US/search.json?q=javascript. No 'Access-Control-Allow-Origin' header is present on the requested resource.
Someone answered my question quickly and said that it was already answered but it just linked me to a tutorial that I had previously read and that didn't work for me. Once again, I know about the plug in, but is that really the only option I have? Is there something I am missing?