Help

DiscussCategory: Editor configurations2 Requests for each externalContentURL in rowsConfiguration
Neil Patterson asked 2 months ago

Why are there always two requests for the externalContentURLs when loading up url to display our saved rows? There always seems to be an OPTIONS request, followed by a GET request for the same route. I had to make sure our rails app included some additional headers to avoid some CORS policy unauthorized responses.

these are the headers I added to my route tomake things resolve

response.headers['Access-Control-Allow-Origin'] = 'https://app.getbee.io'

response.headers['Access-Control-Allow-Methods'] = 'GET,OPTIONS'

response.headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Type, Accept, Authorization'

Is this normal?

Your Answer