How do I add the Access-Control-Allow-Origin header?

This page summarizes the projects mentioned and recommended in the original post on /r/aws

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • sst

    Build modern full-stack applications on AWS

  • I'm doing a tutorial(https://serverless-stack.com/) and when I get to the part where I interact with the backend with my react I get a CORS error saying that it can not communicate with my backend. Does someone have an idea how I would fix this? I read about adding the 'Access-Control-Allow-Origin' header but I am confused to where I should put it ?

  • serverless-stack-demo-api

    Source for the demo app API in the Serverless Stack Guide

  • Hi there, I'm one of the authors of the Serverless Stack guide. You can compare the serverless.yml settings to the one from the guide https://github.com/AnomalyInnovations/serverless-stack-demo-api/blob/master/services/notes/serverless.yml and also make sure the headers are being set correctly https://github.com/AnomalyInnovations/serverless-stack-demo-api/blob/master/services/notes/libs/handler-lib.js#L27.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts