CORS Config Generator

About this tool

Set which origins, methods and headers may call your API from a browser, then get the matching CORS config for S3, Nginx, Apache, Express or PHP. Everything is generated in your browser.

Frequently asked questions

What is CORS Config Generator?

Set allowed origins, methods and headers and get the CORS config for S3, Nginx, Apache, Express or PHP. It is one of the Cloud & DevOps tools on MyCodeTips.

How do I use CORS Config Generator?

Open the tool, enter or paste your input, and the result appears right away. Use the Copy button to copy it.

Is CORS Config Generator free to use?

Yes. It is free to use and does not need an account.

Is my data safe with CORS Config Generator?

The result is produced on our servers. We do not sell your data; see our privacy policy for details.

Can I share my result?

Yes. Use the share buttons below the tool to post a link or copy a link to the tool page.

Which tools are related to CORS Config Generator?

CORS Tester, Nginx Config Generator, .htaccess Generator, S3 Bucket Policy Generator.

Allowed methods
nginx.conf