docs-api icon indicating copy to clipboard operation
docs-api copied to clipboard

[خطا]: cors policy

Open Mardounieh opened this issue 1 year ago • 1 comments

شرح خطا

درود من می‌خواستم از بخش آمار بازار آخرین اطلاعات تتر به ریال رو داشته باشم اما زمانی که فچ می‌کنم خطای Cors می‌گیرم. از کد پیشنهادی قسمت postmanتون هم استفاده کردم همچنان خطا می‌داد. از cors proxy های مختلف هم استفاده کردم اما کار نمی‌کنه. هم توی لوکاک هاست این مشکل رو دارم هم تو سرور.

جزئیات درخواست

GET /market/stats usdt-rls

پاسخ دریافتی

ccess to fetch at 'https://api.nobitex.ir/market/stats?srcCurrency=usdt&dstCurrency=rls' from origin 'http://127.0.0.1:5501' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://nobitex.ir' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

پاسخ مورد انتظار

کمک در حل ارور کمک cors policy

پیوند مراجع

No response

اطلاعات تکمیلی

No response

Mardounieh avatar Mar 31 '24 15:03 Mardounieh