CORS with Symfony, jQuery, FOSRestBundle and NelmioCorsBundle

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

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • NelmioCorsBundle

    Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application

  • For CORS configuration, I am using NelmioCorsBundle with this configuration:

  • FOSRestBundle

    This Bundle provides various tools to rapidly develop RESTful API's with Symfony

  • nelmio\_cors: paths: "^/": allow\_credentials: true origin\_regex: true allow\_origin: - "^(https?://)?(back|api)\.mydomain.dev/?" allow\_headers: ['Origin','Accept','Content-Type'] allow\_methods: ['POST','GET','DELETE','PUT','OPTIONS'] max\_age: 3600 hosts: - "^(https?://)?(back|api)\.mydomain.dev/?" The controller used is extending FOSRestBundle's one, has some security (for example, cannot POST/PUT/DELETE when you don't have the correct role), can update objects and returns only JSON data (there is a listener for that).

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB 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

  • Query with filters

    2 projects | /r/symfony | 26 Jan 2023
  • I wrote a guide to implement a JWT auth in Symfony

    3 projects | /r/symfony | 15 Dec 2022
  • Gracefully killing your RabbitMQ consumers

    2 projects | /r/PHP | 29 Nov 2022
  • VichUploaderBundle: imageName is null on form submit

    2 projects | /r/symfony | 6 Oct 2022
  • Converting images to .webp

    3 projects | /r/symfony | 12 Sep 2022