Back to Question Center
0

Semalt: Za a iya janar da kuma sanya madogara na sassan CORS?

1 answers:

Na sadu da sakon mai bincike na gaba, ta yin amfani da ɓangaren da za a tura daga http zuwa https

XMLHttpRequest ba zai iya load http: // xxx. Sanya daga 'http: // xxx' to 'https: // xxx' An katange ta hanyar CORS: Babu 'BBC-Allon-Allow-Semalt' ba a kan hanyar da aka nema ba. Semalt 'http: // current_page' Saboda haka ba a yarda damar shiga ba.

Ko da yake https: // xxx yana da madaidaicin sauti na CORS.

Tsayar da wannan siginar "janye dukkan" rubutun na apache:

     Sunan mai suna ServerNameGyara dindindin / https: // servername /
    

yana da alaƙa ya haɗa da maƙallin CORS ko kuma juya kanta kanta burauzar yanar gizo zata ƙi - us casino sites.

Shin zai yiwu a samu "janar din" na "Apache" har ma sun hada da kamfanonin CORS?

Na gwada wannan, daga bazuwar baƙi:

     ServerName xxx# fatan wannan yana kiyaye url ta don auto redir :)
Rubutun kan saita Maɓallin Access-Control-Allow-Origin "*"
Rubutun kan saita hanyoyin da za a iya samun dama ta hanyar shiga-damar "POST, GET, OPTIONS, DELETE, PUT"
Rubutun saiti a kan saita Gudanar da damar-Max-Age "1000"
Rubutun suna sanya Adireshin damar shiga-dama-da-sauƙaƙe "buƙata-buƙata-da, Nau'in-nau'in, asalin, izini, karɓa, mai tsaro-tsaro"Gyara dindindin / https: // xxx /
    

Ko wani aiki a nan?

February 7, 2018

Shigar da maƙunsar da aka buƙata na HTTP da aka buƙata kafin turawa (wanda ya kafa matsayin HTTP da Hanya masu haɗaka) ya kamata aiki.

Duk da haka, kuna buƙatar tabbatar da cewa duk an rufe ɗakunan gida kafin gwaji. A baya m tura (wanda ba ya hada da kamfanonin CORS) an kiyaye su, saboda haka duk sababbin buƙatun ba zai buga kwamfutarka ba sai ka ga sabuntawa har sai an cire cache.

Cikakken gida yana iya zama matsala a cikin wannan misali.