
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@mapomodule/mapo-integrations-camomilla
Advanced tools
This is an integration for Mapo nuxt module. This integrates camomilla compatibility layer.
This package implements an integration between the camomilla cms api interfaces and the nuxt module mapo
.
Add @mapomodule/mapo-integrations-camomilla dependency to your project:
yarn add @mapomodule/mapo-integrations-camomilla # or npm install @mapomodule/mapo-integrations-camomilla
django-camomilla-cms >= 5.7.1
."camomilla.authentication.SessionAuthentication"
to rest framework authentication classes.REST_FRAMEWORK = {
"DEFAULT_AUTHENTICATION_CLASSES": (
...
"camomilla.authentication.SessionAuthentication",
...
),
...
}
USE_X_FORWARDED_HOST = True
nuxt.config.js
.{
modules: [
'mapomodule'
],
mapo: {
integrations: {
camomilla: {
location: "@mapomodule/mapo-integrations-camomilla",
configuration: {
api: {
target: 'http://localhost:8000',
}
}
}
}
}
}
For now all the available options reside under the key "api".
string
Here you can pass the root of the camomilla api endpoint. (required)object
Here you can pass additional static headers. The headers will be injected in all requests.boolean
Here you can decide whether to change the origin of requests sent to camomilla. (default: true)object
Here you can pass some rewrite patterns. es. (pathRewrite: {'^/old/api' : '/new/api'})function
Here you can manipulate the request before it is sent to camomilla.function
Here you can manipulate the response before it is sent back to mapo.function | function[]
Here you can pass one or more express middlewares, they will be implemented on top of the request.string
Here you can pass a base url that will be used as base path for all the integrations urls (default: takes the value of your nuxt router base prop).boolean
Here you can decide if you want to syncronize the session between mapo and camomilla. (default: false)For options like target, headers, changeOrigin, pathRewrite, onProxyRes and onProxyReq you can find more information on http-proxy-middleware page.
FAQs
This is an integration for Mapo nuxt module. This integrates camomilla compatibility layer.
We found that @mapomodule/mapo-integrations-camomilla demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.