Im working with Drupal 8 and Angular.
I want to create a content from angular.
I have the Get method working.
The problem is with the Post method, I don’t know how to configure it.
With the Rest Ui module, i have this configuration:
And in the services.yml file I have this one:
cors.config: enabled: true # Specify allowed headers, like 'x-allowed-header'. allowedHeaders:  # Specify allowed request methods, specify ['*'] to allow all possible ones. allowedMethods:  # Configure requests allowed from specific origins. allowedOrigins: ['*'] # Sets the Access-Control-Expose-Headers header. exposedHeaders: false # Sets the Access-Control-Max-Age header. maxAge: false # Sets the Access-Control-Allow-Credentials header. supportsCredentials: false
It works fine for the Get method, but for the POST, it gives me this error:
XMLHttpRequest cannot load http://drupal.dd:8083/entity/node. Preflight response is not successful task.service.ts:92
The task.service.ts is from my Angular app.
1) Is the problem from Drupal configuration or from angular? (if is from angular, i will move the post. )
2)Wich on is the correct way to configure Post Method in Drupal?
Extra info from the method
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!