L5-Swagger: actions.js:453 TypeError: Cannot set property 'X-CSRF-TOKEN' of undefined
- L5-Swagger Version: 1.10.10 (
composer show | grep l5-swagger
) - PHP Version (
php -7.4
): - OS: ubuntu 19+
Description:
actions.js:453 TypeError: Cannot set property ‘X-CSRF-TOKEN’ of undefined
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (4 by maintainers)
Commits related to this issue
- :bug: #304 Fixing bug on requestInterceptor. Swagger UI v3.32.0 change requestInterceptor to make it async https://github.com/swagger-api/swagger-ui/releases/tag/v3.32.0 Now we have to get the reques... — committed to BBS-Lab/L5-Swagger by deleted user 4 years ago
- #304 Fixing requestInterceptor after Swagger UI v3.32.0 changes Now we have to get the request headers from the parameter. Co-authored-by: mfrancois <mfrancois@big-boiss-studio.com> — committed to DarkaOnLine/L5-Swagger by mfrancois 4 years ago
- Fix requestInterceptor for 6.x - #304 — committed to DarkaOnLine/L5-Swagger by DarkaOnLine 4 years ago
- Fix requestInterceptor (#307) Co-authored-by: Darius Matulionis <darius.matulionis@supermetrics.com> Fix requestInterceptor for 7.x - #304 — committed to DarkaOnLine/L5-Swagger by DarkaOnLine 4 years ago
- Fix requestInterceptor for 6.x (#308) Co-authored-by: Darius Matulionis <darius.matulionis@supermetrics.com> Fix requestInterceptor for 6.x - #304 — committed to DarkaOnLine/L5-Swagger by DarkaOnLine 4 years ago
- Fix requestInterceptor (#307) Co-authored-by: Darius Matulionis <darius.matulionis@supermetrics.com> Fix requestInterceptor for 7.x - #304 — committed to mika-iriarte/L5-Swagger by DarkaOnLine 4 years ago
Hi @gromov-io , You can temporary fix it. Export the view resources resources/views/index.blade.php https://github.com/DarkaOnLine/L5-Swagger/blob/b64efe3e05c339b64d19653b200900da4ed4edb5/resources/views/index.blade.php#L84
And change the function at line 84 by this function :
Cheers.
@ricco381,
Use publish command
php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider"
The file will be publish on our resources :
Copied Directory [/vendor/darkaonline/l5-swagger/resources/views] To [/resources/views/vendor/l5-swagger]
Go to
/resources/views/vendor/l5-swagger/index.blade.php
change the function like you want.Regards
While I pull updated file which contains on line 84 of /resources/views/vendor/l5-swagger
does not work so I updated as per @ricco381 on line 84
А меня тоже такая ошибка, как это исправить??