Alice52 / vue-tutorial

this repo is about learning note about front
MIT License
0 stars 0 forks source link

[CORS] 跨源资源共享 #5

Open Alice52 opened 4 years ago

Alice52 commented 4 years ago

introduce

  1. diagram

image

  1. simple http will not limit by cors

    • method: GET HEAD POST
    • and Content-Type: text/plain, multipart/form-data, application/x-www-form-urlencoded
  2. otherwise it will be send OPTIONS request

    • OPTIONS: 预检请求

image


reference

  1. https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Access_control_CORS