Skip to main content

Questions tagged [cors]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
415 views

Nginx Config to serve .json without CORS restriction with ddev

I have Craft 4 installed and use it locally with ddev. Ddev uses nginx in my case and I want to enable serving .json files from a subdirectory within /web. What do I have to add to the nginx.conf file?...
Merc's user avatar
  • 211
3 votes
1 answer
621 views

How can I serve a .json file from the web folder without CORS problems?

I have a .json file that I want to place somewhere in my web folder and serve this if my frontend (another domain) requests it. I can open the file directly but not The problem is, that now I run into ...
Merc's user avatar
  • 211