Koj puas tau tshaj tawm cov ntsiab lus-ntau yam hauv kev nkag-tswj- nthuav tawm-headers header?

Cov txheej txheem:

Koj puas tau tshaj tawm cov ntsiab lus-ntau yam hauv kev nkag-tswj- nthuav tawm-headers header?
Koj puas tau tshaj tawm cov ntsiab lus-ntau yam hauv kev nkag-tswj- nthuav tawm-headers header?
Anonim

Yog tias koj siv CORS, koj puas tau tshaj tawm Cov Ntsiab Lus-Range hauv Access-Control-Expose-Headers header? yog, tab sis cov lus teb zoo tshaj plaws yog daws nws hauv cov lus teb.

Access-Control nthuav tawm cov headers ua dab tsi?

Tus Access-Control-Expose-Headers teb header tso cai rau tus neeg rau zaub mov los qhia tias cov lus teb yuav tsum tau ua rau cov ntawv sau ua haujlwm hauv browser, teb rau qhov kev thov hla teb chaws. Tsuas yog CORS-safelisted teb headers raug nthuav tawm los ntawm lub neej ntawd.

Cov ntsiab lus yog dab tsi?

Cov ntsiab lus-Range HTTP header yog ib lo lus teb header uas qhia qhov twg cov lus ib nrab nyob rau hauv lub cev tag nrho. Lub taub hau no tau xa nrog ib feem ntawm lub cev-lub cev txhawm rau txheeb xyuas qhov twg hauv qhov chaw tag nrho-lub cev yuav tsum tau thov.

Cov ntsiab lus ntawm HTTP thov header teb header yog dab tsi?

HTTP headers cia tus neeg siv khoom thiab tus neeg rau zaub mov hla cov ntaub ntawv ntxiv nrog HTTP thov lossis teb. Tus HTTP header muaj nws cov ntaub ntawv-insensitive lub npe ua raws li txoj hnyuv (:), tom qab ntawd los ntawm nws tus nqi.

Puas Access-Control tso cai headers case sensitive?

Yog tias daim ntawv pov thawj tus chij muaj tseeb thiab qhov Access-Control-Allow-Credentials header tus nqi yog tsis yog rooj plaub-sensitive match rau "muaj tseeb" rov qab ua tsis tiav thiab xaus qhov noalgorithm.

Pom zoo: