 in my previous post i talked about transitioning my site from being powered by craft to being powered by remix and a graphql endpoint coming from craft one of the best features of craft is live preview and it took a little configuration to get this working on my new remix powered site remix configuration these were specific changes that i needed to make on the remix side but really it would be the same for any graphql request as andrew welch breaks down in his article the key is passing the token parameter back that craft included in the url in the loader function of my blog post route i call a helper function to setup the graphql client and i pass the request to it view gist and then in my helper function i take that request grab the url params that i want to include and add those to my graphql request endpoint url view gist it wasnt totally necessary to include the x craft preview and x craft live preview parameters but i figured it couldnt hurt craft configuration now with the remix configuration in place i just needed to make two small changes to craft to get it working correctly first i had to update the preview target for my blog section to point to my remix site then i had to update the config general php to allow iframe requests from my remix domain view gist voila live preview and just like that i had live preview working 