why i keep getting this message while trying to send a post request to my php file using ajax ?
the file is used to save query strings into a file
<?php
Just to clarify the article: using AJAX should work fine, but only if the page you’re launching the AJAX request from is on the same domain as the URL you’re sending the request to. Doing AJAX requests from other websites is not possible.
Oh, you can send that header from your website. But the security system will block CORS requests before they hit your website, so the headers will only be sent to clients which have a valid access cookie.
So you can send CORS headers, but doing so will not let you do CORS.
For starters, this is a useful security feature for websites. It helps to protect your website against malicious bots and attacks. And before you say “but my website is secure and I don’t need this system”, know that many people will disable any security measure without proper consideration because it inconveniences them, and then it’s our servers getting overloaded when the website inevitably gets attacked, and we’re getting asked to help fix it (or even get blamed for it) when that happens.
Additionally, we provide a website hosting service for hosting websites. We don’t want people to use our service for file storage, database hosting, API hosting and so on. This system helps to enforce these rules.
The only way I can see that you can fix the no-javascript issue is to check if the browser has javascript, this appears to be the only way to complete a server connection.
The main issue that I am seeing about ajax calls and specific built in php calls, is that there is a major issue with security and the way in which people have been using the various pre-built solutions (github.com has created a large amount of code that is both insecure and vunerable to misuse) the main answer is to resolve the situation with test answers that will result in the same no-java response and then trickle down the list of requests to find the offending code.