![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 23 Pomógł: 0 Dołączył: 23.09.2009 Ostrzeżenie: (0%) ![]() ![]() |
Czy ktoś wie jak naprawić taki błąd?
W kodzie PHP mam: ale w konsoli przeglądarki dostaję następujący błąd: The value of the 'Access-Control-Allow-Credentials' header in the response is 'true, true' which must be 'true' when the request's credentials mode is 'include'. Próbowałem na różne sposoby :/ Pełen kod to:
Jest to zrobione w taki sposób, bo chcę obsługiwać zapytania z dowolnej domeny, a nie mogę edytować .htaccess (a w zasadzie mogę, ale nic to nie daje). -------------------- The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
|
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 36 557 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
Problem z AJAX nie ma zadnego zwiazku. Przenosze
Nie wysylasz przypadkiem jeszcze gdzies indziej tego naglowka? W innej czesci kod, moze w .htaccess ktore ewidentnie tez zmieniales? -------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 23 Pomógł: 0 Dołączył: 23.09.2009 Ostrzeżenie: (0%) ![]() ![]() |
No właśnie nie. Mi to wygląda jak jakis bład w samym PHP.
Najdziwniejsze jest to, że gdy zrobię: to do przeglądarki wysyła:
-------------------- The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones.
|
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 6 380 Pomógł: 1116 Dołączył: 30.08.2006 Ostrzeżenie: (0%) ![]() ![]() |
Dodałem na szybko, nagłówki odpowiedzi
Access-Control-Allow-Credentials "true" ewidentnie jest dobrze. -------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 05:30 |