Use check_origin for prod domains.
parent
0411360113
commit
a0b45733bc
|
@ -5,7 +5,12 @@ import Config
|
||||||
# manifest is generated by the `mix assets.deploy` task,
|
# manifest is generated by the `mix assets.deploy` task,
|
||||||
# which you should run after static files are built and
|
# which you should run after static files are built and
|
||||||
# before starting your production server.
|
# before starting your production server.
|
||||||
config :portfolio, PortfolioWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
|
config :portfolio, PortfolioWeb.Endpoint,
|
||||||
|
cache_static_manifest: "priv/static/cache_manifest.json",
|
||||||
|
check_origin: [
|
||||||
|
"https://jrpotter.com",
|
||||||
|
"https://www.jrpotter.com"
|
||||||
|
]
|
||||||
|
|
||||||
# Configures Swoosh API Client
|
# Configures Swoosh API Client
|
||||||
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Portfolio.Finch
|
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Portfolio.Finch
|
||||||
|
|
Loading…
Reference in New Issue