thenewguy
thenewguy
Hit this problem as well. Any updates or improvements in the solution? Would like to able to conditionally enable this based on a modelfield from the page being served
This could be simplified if the [page fetching logic](https://github.com/wagtail/wagtail/blob/main/wagtail/views.py#L18) was refactored from the serve view into a reusable function that cached the lookup on the request. Then the middleware could...
Here is a pseudo codish example: ``` def find_page_for_request(request, path): if not getattr(request, '_wagtail_find_page_for_request'): # we need a valid Site object corresponding to this request in order to proceed site...
Incase one looks at my example and wonders about adjusting the `view_func.csrf_exempt` back to `False`, here is how you could implement an actual CSRF hook: ``` class CustomCsrfViewMiddleware(CsrfViewMiddleware): def process_view(request,...
@zerolab @gasman This is the issue/solution I was referring to. Do you like it?
Perhaps a simple workaround would be allowing the task to run as a GMSA?
Did anything ever come of this?
Sounds like something that would be accepted to the official docker library as well https://docs.docker.com/docker-hub/official_images/#creating-an-official-image
I am encountering this issue as well. What is the correct way to handle this case? One component that pulls rest data for individual records using the crud helpers. For...
for now directly using request works but doesn't give a way to update on change ``` getData = () => { const obj = this const done = (data, error)...