Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

In the url i am sending POST data but i crossed checked in the console in same URL then i am geting OPTION so plz the help

Not applicable
 
Solved Solved
0 4 460
1 ACCEPTED SOLUTION

Not applicable

@Vinux

This usually happens when you are sending cross domain request. But after OPTION, you might see post is also getting fired. In order to get through please try and set ACCESS-CONTROL-ALLOW in the header of response by setting * for all domain or your specific domain.

Also enable cors in your browser or by adding a policy.

Hope it helps. Let me know

View solution in original post

4 REPLIES 4