It’s common for people to hit CORS (Cross-Origin Resource Sharing) issues when using the Resend API. This error typically shows as:
Access to XMLHttpRequest at 'https://api.resend.com/emails'from origin 'http://localhost:3000' has been blocked by CORS policy:Response to preflight request doesn't pass access control check:No 'Access-Control-Allow-Origin' header is present on the requested resource.
Usually CORS errors happens when you’re sending emails from the client-side.Send the emails on the server-side to not expose your API keys and avoid CORS issues.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Resend","description":"Resend is the email API for developers. The documentation covers the REST API, official SDKs, the CLI, the MCP server, webhooks, deliverability guides, and step-by-step quickstarts for every major language and framework.","colors":{"primary":"#000000","light":"#EBECED","dark":"#0A0C10"},"logo":{"light":"https://mintcdn.com/resend/w4S5Jr48MiquhhSH/logo-black.svg?fit=max\u0026auto=format\u0026n=w4S5Jr48MiquhhSH\u0026q=85\u0026s=630be7deea6ea94cc7fc4560ea60a5ac","dark":"https://mintcdn.com/resend/w4S5Jr48MiquhhSH/logo-white.svg?fit=max\u0026auto=format\u0026n=w4S5Jr48MiquhhSH\u0026q=85\u0026s=3843916235739ffb9cb1d24683221341","href":"https://resend.com"},"favicon":"https://mintcdn.com/resend/ABWmVTZIHGIFNTFD/favicon.png?fit=max\u0026auto=format\u0026n=ABWmVTZIHGIFNTFD\u0026q=85\u0026s=cdbec1c9eedb30488e99d94d84999c24","api":{"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.resend.com"}},"background":{"color":{"dark":"#000000"}},"navbar":{"links":[{"href":"https://resend.com/login","label":"Sign In"}],"primary":{"type":"button","label":"Get Started","href":"https://resend.com/signup"}},"footer":{"socials":{"x":"https://x.com/resend","github":"https://github.com/resend","youtube":"https://www.youtube.com/@resendlabs","website":"https://resend.com/"}},"seo":{"indexing":"all"},"fonts":{"heading":{"family":"Inter","weight":700},"body":{"family":"Inter","weight":400}},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"vesper"}},"latex":false},"integrations":{"posthog":{"apiKey":"phc_AgEBpcQTRsBl3UgQX2U8XvimTlgdXG6YEhfvJl2cUfc","sessionRecording":false}},"contextual":{"options":["copy",{"title":"llms-full.txt","description":"View all docs as Markdown for LLMs","icon":"markdown","href":"https://resend.com/docs/llms-full.txt"},"add-mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"resend","hasAudioNarration":false,"actualSubdomain":"resend","customDomains":["resend.com","resend-staging.com"],"gitSource":{"type":"github","owner":"resend","repo":"resend-docs","deployBranch":"main","contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae144a873e50bf1690e0cb9","collectionId":"a3387a55-7e68-4e93-a39e-c1663f8865f1","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae144a873e50bf1690e0cb9"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae1ebf3d6a250fd1db950a4","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Documentation","count":178},{"language":"default","tag":"API Reference","count":150},{"language":"default","tag":"Learn","count":115},{"language":"default","tag":"Guides","count":96},{"language":"default","tag":"Get started","count":57},{"language":"default","tag":"Webhooks","count":54},{"language":"default","tag":"Sending examples","count":52},{"language":"default","tag":"Domains","count":38},{"language":"default","tag":"Events reference","count":37},{"language":"default","tag":"Sending","count":32}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html:not(.dark) ::selection{background-color:#0000001a}html.dark ::selection{background-color:#ffffff33}html:not(.dark) .codeblock-light .line-highlight,html:not(.dark) .codeblock-light .line-highlight:after,html:not(.dark) .codeblock-light .line-highlight:before{background:#00cc9937}html.dark .line-highlight,html.dark .line-highlight:after,html.dark .line-highlight:before,html:not(.dark) .codeblock-dark .line-highlight,html:not(.dark) .codeblock-dark .line-highlight:after,html:not(.dark) .codeblock-dark .line-highlight:before{background:#00fff61d}html.dark .line-highlight:before,html:not(.dark) .codeblock-dark .line-highlight:before{border-color:#4cd7b8}html:not(.dark) .codeblock-light .line-highlight:before{border-color:#55d799}#page-context-menu-button{padding-block:8px}.nav-logo{width:80px}@media (min-width:1024px){#navbar .flex-1:has(>a .nav-logo){flex:none!important;width:15rem}#navbar .ustify-end:has(.nav-tabs){justify-content:space-between!important;margin-left:0!important}#navbar .flex:has(>.ustify-end){flex:1!important}#navbar .nav-tabs{white-space:nowrap}}"}],"page":{"pagePath":"knowledge-base/how-do-i-fix-cors-issues","slug":"/knowledge-base/how-do-i-fix-cors-issues","pageMetadata":{"title":"How to fix CORS issues","sidebarTitle":"CORS Issues","description":"Information on recommended options to avoid CORS errors when sending emails.","reviewed":"2025-12-08T00:00:00.000Z","href":"/knowledge-base/how-do-i-fix-cors-issues"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Information on recommended options to avoid CORS errors when sending emails.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`problem`,children:`Problem`}),`\n`,_jsx(_components.p,{children:`It’s common for people to hit CORS (Cross-Origin Resource Sharing) issues when using the Resend API. This error typically shows as:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light vesper`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#101010`,color:`#24292e`,\"--shiki-dark\":`#FFF`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Access to XMLHttpRequest at 'https://api.resend.com/emails'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`from origin 'http://localhost:3000' has been blocked by CORS policy:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Response to preflight request doesn't pass access control check:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`No 'Access-Control-Allow-Origin' header is present on the requested resource.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`solution`,children:`Solution`}),`\n`,_jsxs(_components.p,{children:[`Usually CORS errors happens when you’re sending emails from the `,_jsx(_components.strong,{children:`client-side`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Send the emails on the `,_jsx(_components.strong,{children:`server-side`}),` to not expose your API keys and avoid CORS issues.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"vesper"}},"config":{},"pageMetadata":{"title":"How to fix CORS issues","sidebarTitle":"CORS Issues","description":"Information on recommended options to avoid CORS errors when sending emails.","reviewed":"2025-12-08T00:00:00.000Z","href":"/knowledge-base/how-do-i-fix-cors-issues"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Problem","slug":"problem","depth":2,"children":[]},{"title":"Solution","slug":"solution","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/resend/34a103d44dce6f34/resend.js","/docs/_mintlify/custom/resend/b0fac65f85cb29e7/reo.dev.js"],"subdomain":"resend","siteName":"Resend","title":"How to fix CORS issues - Resend","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-08T23:12:20.499Z","originalFileLocation":"knowledge-base/how-do-i-fix-cors-issues.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Information on recommended options to avoid CORS errors when sending emails.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Resend\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"How to fix CORS issues - Resend\">\u003cmeta data-mint-head property=\"og:description\" content=\"Information on recommended options to avoid CORS errors when sending emails.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Resend\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://resend.mintlify.app/_mintlify/api/og/v2?division=Sending\u0026amp;title=How+to+fix+CORS+issues\u0026amp;description=Information+on+recommended+options+to+avoid+CORS+errors+when+sending+emails.\u0026amp;theme=0453800a90f4a9b2ad9d73ea\u0026amp;signature=fe6e579fcdb9dd3f3feb47305d0a71a8ba570cb8faa3e7ccff5c200a4c914b13\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"How to fix CORS issues - Resend\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Information on recommended options to avoid CORS errors when sending emails.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://resend.mintlify.app/_mintlify/api/og/v2?division=Sending\u0026amp;title=How+to+fix+CORS+issues\u0026amp;description=Information+on+recommended+options+to+avoid+CORS+errors+when+sending+emails.\u0026amp;theme=0453800a90f4a9b2ad9d73ea\u0026amp;signature=fe6e579fcdb9dd3f3feb47305d0a71a8ba570cb8faa3e7ccff5c200a4c914b13\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/resend/nAzNk0iRWkZBBJ91/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Resend\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/knowledge-base/how-do-i-fix-cors-issues.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://resend.com/#organization\",\"name\":\"Resend\",\"url\":\"https://resend.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/resend/w4S5Jr48MiquhhSH/logo-black.svg?fit=max\u0026auto=format\u0026n=w4S5Jr48MiquhhSH\u0026q=85\u0026s=630be7deea6ea94cc7fc4560ea60a5ac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://resend.com/docs#website\",\"name\":\"Resend\",\"url\":\"https://resend.com/docs\",\"publisher\":{\"@id\":\"https://resend.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues#webpage\",\"url\":\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues\",\"name\":\"How to fix CORS issues\",\"description\":\"Information on recommended options to avoid CORS errors when sending emails.\",\"dateModified\":\"2026-07-08T23:12:20.499Z\",\"isPartOf\":{\"@id\":\"https://resend.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sending\",\"item\":\"https://resend.com/docs/knowledge-base/what-sending-feature-to-use\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fix CORS issues\",\"item\":\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues#article\",\"headline\":\"How to fix CORS issues\",\"name\":\"How to fix CORS issues\",\"description\":\"Information on recommended options to avoid CORS errors when sending emails.\",\"url\":\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues\",\"mainEntityOfPage\":{\"@id\":\"https://resend.com/docs/knowledge-base/how-do-i-fix-cors-issues#webpage\"},\"dateModified\":\"2026-07-08T23:12:20.499Z\",\"publisher\":{\"@id\":\"https://resend.com/#organization\"},\"isPartOf\":{\"@id\":\"https://resend.com/docs#website\"}}]}\u003c/script>","siteName":"Resend","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Guides","icon":"books","groups":[{"group":"Knowledge Base","pages":[{"title":"Introduction","href":"/knowledge-base/introduction"}]},{"group":"API Keys","pages":[{"title":"Manage API keys","sidebarTitle":"Manage API Keys","href":"/dashboard/api-keys/introduction"},{"title":"How to handle API keys","sidebarTitle":"API Key Security","href":"/knowledge-base/how-to-handle-api-keys"},{"title":"How to handle a leaked API key","sidebarTitle":"Leaked API Keys","href":"/knowledge-base/how-to-handle-a-leaked-api-key"}]},{"group":"Domains","pages":[{"title":"How to avoid conflicts with your MX records","sidebarTitle":"Avoid MX Conflicts","href":"/knowledge-base/how-do-i-avoid-conflicting-with-my-mx-records"},{"title":"What if my domain is not verifying?","sidebarTitle":"Domain Not Verifying","href":"/knowledge-base/what-if-my-domain-is-not-verifying"},{"title":"403 Error with Error Code 1010","sidebarTitle":"Error 1010","href":"/knowledge-base/403-error-1010"},{"title":"403 Error Using Verified Domain","sidebarTitle":"Domain Mismatch","href":"/knowledge-base/403-error-domain-mismatch"},{"title":"403 Error Using resend.dev Domain","sidebarTitle":"resend.dev Domain Error","href":"/knowledge-base/403-error-resend-dev-domain"},{"title":"Domain Already Registered by Another Account","sidebarTitle":"Domain already registered","href":"/knowledge-base/domain-already-registered"},{"title":"DMARC Analyzer","sidebarTitle":"DMARC Analyzer","href":"/dmarc-analyzer"},{"group":"DNS Guides","pages":[{"title":"Cloudflare","href":"/guides/dns/cloudflare"},{"title":"DreamHost","href":"/guides/dns/dreamhost"},{"title":"Gandi","href":"/guides/dns/gandi"},{"title":"GoDaddy","href":"/guides/dns/godaddy"},{"title":"Hetzner","href":"/guides/dns/hetzner"},{"title":"Hostinger","href":"/guides/dns/hostinger"},{"title":"IONOS","href":"/guides/dns/ionos"},{"title":"Namecheap","href":"/guides/dns/namecheap"},{"title":"Porkbun","href":"/guides/dns/porkbun"},{"title":"AWS Route 53","href":"/guides/dns/route53"},{"title":"Squarespace","href":"/guides/dns/squarespace"},{"title":"Strato","href":"/guides/dns/strato"},{"title":"Vercel","href":"/guides/dns/vercel"}]}]},{"group":"Sending","pages":[{"title":"Which sending feature do you need?","sidebarTitle":"What sending feature to use?","href":"/knowledge-base/what-sending-feature-to-use"},{"title":"Why and when to use Topics?","sidebarTitle":"Why use Topics?","href":"/knowledge-base/why-use-topics"},{"title":"Do you need to add an unsubscribe link to all of your emails sent with Resend?","sidebarTitle":"When to Add an Unsubscribe Link","href":"/knowledge-base/should-i-add-an-unsubscribe-link"},{"title":"How do Dedicated IPs work?","href":"/knowledge-base/how-do-dedicated-ips-work"},{"title":"Sender email addresses in Resend","sidebarTitle":"Creating email address","href":"/knowledge-base/how-do-I-create-an-email-address-or-sender-in-resend"},{"title":"What attachment types are not supported?","sidebarTitle":"Unsupported Attachment Types","description":"Learn which file attachment extensions you can't send.","href":"/knowledge-base/what-attachment-types-are-not-supported"},{"title":"How to fix CORS issues","sidebarTitle":"CORS Issues","href":"/knowledge-base/how-do-i-fix-cors-issues"},{"title":"How to cancel a Broadcast","sidebarTitle":"Cancel a Broadcast","description":"Cancel a scheduled Broadcast or stop one that is still sending.","href":"/knowledge-base/how-do-i-cancel-a-broadcast"}]},{"group":"Deliverability","pages":[{"title":"Why are my emails landing on the Suppression List?","sidebarTitle":"Managing the Suppression List","href":"/knowledge-base/why-are-my-emails-landing-on-the-suppression-list"},{"title":"Can You Receive Emails with Resend?","sidebarTitle":"Receiving Emails","href":"/knowledge-base/how-can-i-receive-emails-with-resend"},{"title":"Is it better to send emails from a subdomain or the root domain?","sidebarTitle":"Subdomain vs Root Domain","href":"/knowledge-base/is-it-better-to-send-emails-from-a-subdomain-or-the-root-domain"},{"title":"What if an email says delivered but the recipient has not received it?","sidebarTitle":"Delivered Email Not Arriving","href":"/knowledge-base/what-if-an-email-says-delivered-but-the-recipient-has-not-received-it"},{"title":"How to prevent bounces with @privaterelay.appleid.com recipients?","sidebarTitle":"Sending to Apple Private Email Relay","href":"/knowledge-base/sending-apple-private-relay"},{"title":"Why are my open rates not accurate","href":"/knowledge-base/why-are-my-open-rates-not-accurate"},{"title":"Audience Hygiene: How to keep your Audiences in good shape?","sidebarTitle":"Audience Hygiene","href":"/knowledge-base/audience-hygiene"},{"title":"Domain and/or IP Warm-up Guide","sidebarTitle":"Warm-up Guide","href":"/knowledge-base/warming-up"},{"title":"What counts as email consent?","sidebarTitle":"What is email consent?","href":"/knowledge-base/what-counts-as-email-consent"},{"title":"Do You Need 2048-bit DKIM?","sidebarTitle":"DKIM Key Length","href":"/knowledge-base/do-i-need-2048-dkim"}]},{"group":"Testing","pages":[{"title":"How to set up E2E testing with Playwright","sidebarTitle":"E2E testing with Playwright","href":"/knowledge-base/end-to-end-testing-with-playwright"},{"title":"What email addresses to use for testing?","sidebarTitle":"Email addresses for testing","href":"/knowledge-base/what-email-addresses-to-use-for-testing"}]},{"group":"Tutorials","pages":[{"title":"Get Started with Resend and Supabase","sidebarTitle":"Supabase Resend Quickstart","href":"/knowledge-base/getting-started-with-resend-and-supabase"},{"title":"How to maximize deliverability for Supabase Auth emails","sidebarTitle":"Supabase Go-Live Checklist","href":"/knowledge-base/how-do-i-maximize-deliverability-for-supabase-auth-emails"},{"title":"How to set up Apple Branded Mail","sidebarTitle":"Set up your logo on Apple Mail","href":"/knowledge-base/how-do-i-set-up-apple-branded-mail"},{"title":"How to send with an avatar","sidebarTitle":"Send with an Avatar","href":"/knowledge-base/how-do-i-send-with-an-avatar"},{"title":"Forward emails with Resend Inbound","sidebarTitle":"Inbound: Forward Emails","href":"/knowledge-base/forward-emails-with-resend-inbound"},{"title":"Template emails with React Email","sidebarTitle":"React Email Templates","href":"/knowledge-base/template-emails-with-react-email"},{"title":"Embed the React Email editor in your app","sidebarTitle":"Embed React Email Editor","href":"/knowledge-base/embed-react-email-editor"},{"title":"Building an OAuth client for Resend","href":"/guides/building-a-resend-oauth-client"},{"title":"Vercel Marketplace Integration","href":"/guides/vercel-marketplace-integration"},{"title":"Stripe Projects Integration","href":"/guides/stripe-projects-integration"},{"title":"Laravel Cloud Integration","sidebarTitle":"Laravel Cloud","href":"/guides/laravel-cloud-integration"},{"title":"Send emails with n8n and Resend","sidebarTitle":"n8n Resend Integration","href":"/knowledge-base/n8n-integration"},{"title":"Send emails with Attio and Resend","sidebarTitle":"Attio Resend Integration","href":"/guides/attio-integration"},{"title":"Send emails with Devin and Resend","sidebarTitle":"Send emails with Devin","href":"/guides/devin"},{"title":"Turn Paper designs into Resend emails","sidebarTitle":"Design emails with Paper","href":"/guides/paper"}]},{"group":"Build with AI","pages":[{"group":"AI Tools","pages":[{"title":"Resend CLI for AI Agents","sidebarTitle":"Resend CLI for Agents","href":"/cli-agents"},{"title":"OpenClaw Guide","href":"/openclaw-guide"}]},{"group":"Agent Skills","pages":[{"title":"React Email Skill","sidebarTitle":"React Email","href":"/react-email-skill"},{"title":"Resend Skill","href":"/resend-skill"},{"title":"Agent Email Inbox Skill","sidebarTitle":"Agent Email Inbox","href":"/agent-email-inbox-skill"},{"title":"Email Best Practices Skill","sidebarTitle":"Email Best Practices","href":"/email-best-practices-skill"}]},{"group":"Chat SDK","pages":[{"title":"Chat SDK","sidebarTitle":"Overview","href":"/chat-sdk"},{"title":"Chat SDK Card Emails","sidebarTitle":"Card Emails","href":"/chat-sdk-card-emails"},{"title":"Chat SDK Attachments","sidebarTitle":"Attachments","href":"/chat-sdk-attachments"},{"title":"Chat SDK Proactive Outreach","sidebarTitle":"Proactive Outreach","href":"/chat-sdk-proactive-outreach"},{"title":"Eve","sidebarTitle":"Eve","href":"/knowledge-base/eve"}]},{"group":"AI Builder Guides","pages":[{"title":"How to add the Resend integration to your Anything project","sidebarTitle":"Anything Resend Integration","href":"/anything-integration"},{"title":"Send emails with Lovable and Resend","sidebarTitle":"Lovable Resend Integration","href":"/lovable-integration"},{"title":"Send emails with v0 and Resend","sidebarTitle":"v0 Resend Integration","href":"/v0-integration"},{"title":"Send emails with Bolt.new and Resend","sidebarTitle":"Bolt.new Resend Integration","href":"/bolt-new-integration"},{"title":"Send emails with Replit and Resend","sidebarTitle":"Replit Resend Integration","href":"/replit-integration"},{"title":"Send emails with Base44 and Resend","sidebarTitle":"Base44 Resend Integration","href":"/base44-integration"},{"title":"Send emails with Leap and Resend","sidebarTitle":"Leap Resend Integration","href":"/leap-new-integration"},{"title":"Send emails with Appwrite and Resend","sidebarTitle":"Appwrite Resend Integration","href":"/appwrite-integration"}]}]},{"group":"Account Management","pages":[{"title":"How to change your Resend email address","sidebarTitle":"Change your Email Address","href":"/knowledge-base/how-can-i-change-my-email-address"},{"title":"How to add multi-factor authentication to your Resend account","sidebarTitle":"Add Multi-Factor Authentication","href":"/knowledge-base/how-can-i-add-mfa"},{"title":"Locked out by MFA","href":"/guides/account/locked-out-by-mfa"},{"title":"Does Resend require production approval?","sidebarTitle":"Production Approval","href":"/knowledge-base/does-resend-require-production-approval"},{"title":"What's the difference between Opportunistic TLS vs Enforced TLS?","sidebarTitle":"Configuring TLS","href":"/knowledge-base/whats-the-difference-between-opportunistic-tls-vs-enforced-tls"},{"title":"Managing Billing","sidebarTitle":"Billing","href":"/dashboard/settings/billing"},{"title":"What is Resend Pricing","sidebarTitle":"Resend Pricing","href":"/knowledge-base/what-is-resend-pricing"},{"title":"How to add more domains","sidebarTitle":"Add More Domains","href":"/knowledge-base/how-to-add-more-domains"},{"title":"What are Resend account quotas and limits?","sidebarTitle":"Account Quotas And Limits","href":"/knowledge-base/account-quotas-and-limits"},{"title":"Custom Unsubscribe Page","sidebarTitle":"Unsubscribe Page","href":"/dashboard/settings/unsubscribe-page"},{"title":"Managing Teams","sidebarTitle":"Teams","href":"/dashboard/settings/team"},{"title":"Can I merge accounts or teams?","sidebarTitle":"Merge Accounts or Teams","href":"/guides/account/can-i-merge-accounts-or-teams"},{"title":"How to recover access to a team you can no longer sign in to","sidebarTitle":"Recover Team Access","href":"/guides/account/how-to-recover-access-to-a-team"},{"title":"Single Sign-On","sidebarTitle":"Single Sign-On","href":"/dashboard/settings/sso"},{"title":"Setting up Resend for Multi-Tenant Applications","sidebarTitle":"Multi-Tenant Setup","href":"/knowledge-base/setting-up-resend-for-multi-tenants"},{"title":"Where to find Resend documents like DPA or W-9","sidebarTitle":"Compliance documents","href":"/knowledge-base/downloading-documents"},{"title":"How to ensure sensitive data isn't stored on Resend","sidebarTitle":"Turn Off Message Storage","href":"/knowledge-base/how-do-i-ensure-sensitive-data-isnt-stored-on-resend"},{"title":"Security","href":"/security"},{"title":"How to delete your Resend account","sidebarTitle":"Delete your Resend Account","href":"/knowledge-base/how-can-i-delete-my-resend-account"}]}]},{"tab":"API Reference","icon":"rectangle-terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"title":"How to fix CORS issues - Resend","buildId":"dpl_3rfzHPCtRhDFBbetXZ3oLkN5tjmA","deploymentId":"dpl_3rfzHPCtRhDFBbetXZ3oLkN5tjmA","dynamics":[],"chunks":[]}