你好
Jump to turn (9)
- 1你好
- 2Access to XMLHttpRequest at 'http://localhost:5000/generate-image' from origin '
- 3我的后端代码如下,该如何解决: from flask import Flask, request, jsonify, rendertemplate, urlfo
- 4127.0.0.1 - - [09/Nov/2023 20:29:06] "OPTIONS /generate-image HTTP/1.1" 200 - De
- 5我前端用的react,然后app.js代码如下: import React, { useState } from 'react'; import './App.
- 6还有必要添加这个吗,我都用react和前端和前后端分离了: @app.route(‘/’) def index(): return rendertemplate
- 7Not allowed to load local resource:file:///C:/Users/30388/AppData/Local/Temp/gra
- 8请给出完整的修改后的后端代码
- 9xhr.js:255 GET http://localhost:3000/uploads 404 (Not Found) dispatchXhrRequest
- User
你好
- Assistant
你好!有什么我可以帮助你的吗?
- User
Access to XMLHttpRequest at 'http://localhost:5000/generate-image' 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.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.