Closed cyrusDev1 closed 1 year ago
@raminmr
I have the same issue
Same issue here @raminmr
@raminmr me too
Access to fetch at 'http://api.cup2022.ir/api/v1/bydate' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Are you calling directly through the website?
@raminmr me too
Are you calling directly through the website?
@raminmr me too
Are you calling directly through the website?
I used axios to make the request from the api
it works fine on postman but not in browser
My Brother You must call through the service server. You cannot call the service through the web.
What can i do?
@raminmr
How connetion in service server.
@raminmr How can I connect through the service server?
How are you all trying to connect? If you're just clicking the link in a browser that won't work, you'll need to use some sort of JSON API library.
@sp1z through Axios
I’ve tried to call the api from localhost (react app) through axios (I am using a web token also) , but CORS error is showing up saying that I cannot send requests from localhost to the apiأُرسلت من الـ iPhoneفي ١٢/١١/٢٠٢٢ الساعة ٢:٠٧ م، كتب/كتبت Irlan Viana @.***>: @sp1z through Axios
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
The content of this email and its attachments and any views or opinions presented in this email are solely those of the sender and do not represent those of the Yarmouk University. Also, the recipient should check this email and any attachments for the presence of viruses. Yarmouk University will not accept any liability in respect of such communication or any damage caused by any virus transmitted by this email or its attachments, and the sender will be personally liable for any damages or other liability arising.
©Yarmouk University, Irbid-Jordan www.yu.edu.jo
You must call through the service server. You cannot call the service through the web.
If you want to call the service directly. support me I will give you access to your address 🤪
What exactly does it mean to call through the service server?
Access to fetch at 'http://api.cup2022.ir/api/v1/bydate' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.