Response for preflight 403 forbidden

前端 未结 1 1560
渐次进展
渐次进展 2020-12-20 04:09

I\'ve been trying to make a simple iron-ajax post to the server, but it keeps failing at the preflight call. For the life of me I can\'t figure out what\'s goin

相关标签:
1条回答
  • 2020-12-20 04:53

    The 403 response status indicates a general problem with the server backend not being configured to handle OPTIONS requests, not just CORS preflight OPTIONS requests.

    The server must respond to OPTIONS requests with a 2xx success status—typically 200 or 204.

    If the server doesn’t do that, it makes no difference what Access-Control-* headers you have it configured to send. And the answer to configuring the server to handle OPTIONS requests in the right way—to send a 200 or 204 success message—depends on what server software it’s running

    0 讨论(0)
提交回复
热议问题