Use check_origin for prod domains.

main
Joshua Potter 2024-05-18 12:16:55 -06:00
parent 0411360113
commit a0b45733bc
1 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,12 @@ import Config
# manifest is generated by the `mix assets.deploy` task,
# which you should run after static files are built and
# 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
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Portfolio.Finch