Comments (5)
I think you need to take a look at precisely what is being returned, there will be more information there.
from django-oscar-api.
could not find any error message associated with it other than the status(forbidden), how do you propose I check what was returned?
from django-oscar-api.
I console.logged the response and found this line.
responseJSON:
detail:
"CSRF Failed: CSRF token missing or incorrect."
from django-oscar-api.
this is my middleware settings:
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'oscarapi.middleware.HeaderSessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'oscarapi.middleware.ApiBasketMiddleWare',
]
from django-oscar-api.
Related Issues (20)
- When doing a patch operation on admin/product, images are inserted rather than updated. HOT 4
- Add APIView for removing voucher from basket HOT 1
- ChildProductserializer should be renamed to ChildProductSerializer to follow the rest of the naming convention HOT 2
- LazyRemoteFile sometimes raises 403 forbidden error because of urlretrieve headers HOT 3
- the sandbox doesn't work due to incompatable version of django getting installed. HOT 4
- ImageUrlField is causing an error HOT 13
- Voucher application with suspended offer HOT 1
- Unable to create an account HOT 1
- How to Login with react js HOT 16
- How to Overwrite Oscar API URL ? HOT 1
- getting HOT 2
- Weird results in attributes with patching Childs HOT 3
- AttributeError: 'NoneType' object has no attribute 'strategy' HOT 3
- Is there any good way to make price range filter with oscar api? HOT 1
- Why doesn't ProductList filter out non-public products?
- AdminProductSerializer validation
- `cookies_to_delete` is always an empty list HOT 12
- AdminProductSerializer error when trying to add products HOT 1
- Voucher discount is applied to every single product in the basket
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-oscar-api.