Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Post method not working in shared hosting #3

Open
thepowerman opened this issue Sep 9, 2018 · 1 comment
Open

HTTP Post method not working in shared hosting #3

thepowerman opened this issue Sep 9, 2018 · 1 comment

Comments

@thepowerman
Copy link

In shared webhosting, the http post, put, delete not working, could you help what is the issue in code

header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');
header('Access-Control-Allow-Methods: POST');
header('Access-Control-Allow-Headers: Access-Control-Allow-Headers,Content-Type,Access-Control-Allow-Methods, Authorization, X-Requested-With');


when i am using the get method, it is working fine
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');

@MaxwellEnemuo
Copy link
Contributor

Use chrome debugger to inspect behind the scenes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants