Skip to content

Integration testing backend widgets #186

Answered by ericp-mrel
ericp-mrel asked this question in Q&A
Discussion options

You must be logged in to vote

Ahh, I figured out my problem. I was copying the cms.php file from config/cms.php into config/testing/cms.php because I saw the Winter CMS tests.yml file doing that, but I didn't think anything of it until I realized by doing that I was effectively enabling CSRF protection which was the reason I was seeing the 403 error. So, not overriding the supplied cms.php in the testing config folder fixed my issue so that CSRF protection is not being enable during testing.

Glad I've finally figured out my issue and that explains why it was happening in Github Actions and not my local copy.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@ericp-mrel
Comment options

@ericp-mrel
Comment options

Comment options

You must be logged in to vote
1 reply
@ericp-mrel
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ericp-mrel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants