CSRF validation does not work on Django using HTTPS

Django 4.0 and above For Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme and host, e.g.: CSRF_TRUSTED_ORIGINS = [‘https://front.bluemix.net’] Django 3.2 and lower For Django 3.2 and lower, CSRF_TRUSTED_ORIGINS must contain only the hostname, without a scheme: CSRF_TRUSTED_ORIGINS = [‘front.bluemix.net’] You probably also need to put something in ALLOWED_HOSTS…

How to remove a context variable in Watson Assistant service on IBM Cloud

For those using Watson Assistant on an older API version: The best is to use context.remove() in the output section. I usually have an extra child node for cleanup. { “output”: { “text”: {}, “deleted”: “<? context.remove(‘eventName’) ?> <? context.remove(‘queryPredicate’) ?>” } } Because deleted is not part of the context section it won’t be … Read more

How do I add an action to watson conversation response?

You can use context variables or action variables for that. How to use context variables? Add in your Advance response the “context” and the values, check my example. I’ve used the conversation simple for that. In your Watson Developer Cloud – IBM Bluemix – Watson Conversation, add in the Advanced response this JSON example, Assuming … Read more