-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Unable to Call API with custome header data #4
Comments
Try to call your route with Postman or any other API test service, if you still have this problem let me know. |
I believe the issue is with the preflight
|
@adminrai what error? |
Is show 500 error |
@adminrai The error doesn't have any content❓ |
This page isn’t working |
When i dubug it in index.php // create object of request and response class is working but afrer this code its through error 500 |
@adminrai Your application hosted on this website 'relopsonline.com' or it's your endpoint? |
Hi
Please provide me help i am unable to call api from react with custome header data.
const response = fetch('http://localhost/server/logout',{headers: {'Auth': 'foobar'}});
Its through Error:
Access to fetch at 'http://localhost/server/logout' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
The text was updated successfully, but these errors were encountered: