Hi,
First of all thanks for the great hosting, i have 2 questions: DELETE METHOD I have a delete method in my application, that works perfectly in localhost but when i send to 000webhost isnt working, all my other methods GET and POST works.
000webhost banner How can I turn off? I turned off few days ago but now i can’t, need to be premium?
Hi my friend.
So i have a registrar registro.br and because of that i cant turn it off? Even if i pay for host only ?
Maybe i can pay for host and new domain only .com and change my .com.br redirects to .com ?!
[quote=“mariante, post:1, topic:81068”]
DELETE METHOD I have a delete method in my application, that works perfectly in localhost but when i send to 000webhost isnt working, all my other methods GET and POST works.
[/quote]?
Ok, so consider that i bought, now i have mywebsite.com (hostinger) and mywebsite.com.br (registrar), so like that i can turn it off right?
And what about my other question? DELETE method only if I go premium too?
Delete a value where user = user and cod = 12345 In my localhost works like a charm, in here 000webhost only all my others things that uses my api or dash_api works, methods get and post works perfectly,
Please lower your PHP version: 000webhost cPanel > Settings > General > Change PHP version > 5.6
Please append the following code to a new line in /public_html/.htaccess
php_value outputbuffering on
Please check and make sure there are no empty spaces/lines before php <?php / ?> tags.
Also, append the following code to .htaccess as well:
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept"
Header set Access-Control-Allow-Methods "GET, POST, PUT, DELETE"