CORS with python baseHTTPserver 501 (Unsupported method ('OPTIONS')) in chrome

前端 未结 3 523
有刺的猬
有刺的猬 2020-12-17 01:57

Hi I need some help with base authentification while a ajax get/post request to a python baseHTTPserver.

I was able to change some lines of code in the python scrip

3条回答
  •  无人及你
    2020-12-17 02:29

    The error is raised because you don't have a do_OPTIONS method on your HTTPHandler. It will handle OPTIONS requests. I suspect you're going to have further problems, but that's a good start ;)

提交回复
热议问题