You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
I updated my angular-lib from an early 1.2 release yesterday to 1.2.10 and all my POST,PUT and DELETE( CORS ) requests failed due to CSRF ( django backend ).
I started to go backwards and found and that the error started to occur between 1.2.8 and 1.2.9. To be specific, the following commit makes my requests fail:
@JoakimBe, the copying happens before your config function ever runs. I guess we should have realized this could be a breaking change, it might be nice to have a convenience method to set them for all methods.
@caitp , Okey, makes sense. So is it a bug or more of a behavioral change in the angular-lib? The conclusion of that question is, do we need to configure these header settings differently then we have in the past? Or will you create a fix for it in the coming versions?
You need to configure them more heavily... we could write a convenience method to simplify it, but yeah for now you should set the header for each of the things that need it
I updated my angular-lib from an early 1.2 release yesterday to 1.2.10 and all my POST,PUT and DELETE( CORS ) requests failed due to CSRF ( django backend ).
I started to go backwards and found and that the error started to occur between 1.2.8 and 1.2.9. To be specific, the following commit makes my requests fail:
cironunes@7812874
I did a quick test and changed the source-code in 1.2.10 back according to this commit and eveyrthing started working again.
Can anyone confirm this?
Hopefully I manage to get enough time tonight to setup a test-app that shows the problem if debugging needs to be done.
The text was updated successfully, but these errors were encountered: